#include <ValueIntCheck.hpp>
Inheritance diagram for limal::ValueIntCheck:

Public Member Functions | |
| ValueIntCheck (blocxx::UInt64 minValue, blocxx::UInt64 maxValue, bool inclusiveRange=true) | |
| ValueIntCheck (blocxx::Int64 minValue, blocxx::Int64 maxValue, bool inclusiveRange=true) | |
| ValueIntCheck (int minValue, int maxValue, bool inclusiveRange=true) | |
| virtual bool | isValid (const blocxx::String &value) const |
| virtual blocxx::String | explain (const blocxx::String &value) const |
Private Attributes | |
| bool | m_sign |
| bool | m_incl |
| union { | |
| blocxx::Int64 s | |
| blocxx::UInt64 u | |
| } | m_min |
| union { | |
| blocxx::Int64 s | |
| blocxx::UInt64 u | |
| } | m_max |
The ValueIntCheck implements a simple integer range check that can be used in ValueCheck.
|
||||||||||||||||
|
Constructor using a UInt64 range.
|
|
||||||||||||||||
|
Constructor using a Int64 range.
|
|
||||||||||||||||
|
Constructor using int range. Note: This constructor will be used by default, if you simply call: ValueIntCheck(0, 42) To avoid conversion problems on 64 bit integers, you should choose the right constructors: ValueIntCheck( Int64(0), Int64(42)) ValueIntCheck(UInt64(0), UInt64(42)) instead...
|
|
|
Return a string showing the integer range check.
Implements limal::ValueCheckBase. |
|
|
Return whether the specified value is fits into the integer range.
Implements limal::ValueCheckBase. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.4