the restriction of number class More...
#include <NumberRestriction.h>
Public Member Functions | |
| NumberRestriction () | |
| constructor | |
| virtual | ~NumberRestriction () |
| destructor | |
| void | reset () |
| resets restriction | |
| void | setInclusiveMinValue (const double value) |
| sets inclusive min value More... | |
| bool | hasInclusiveMinValue () |
| judges whether this argument inclusive min value. More... | |
| double | getInclusiveMinValue (const double dfValue=0.0) |
| gets min inclusive value More... | |
| void | setInclusiveMaxValue (const double value) |
| sets inclusive max value More... | |
| bool | hasInclusiveMaxValue () |
| judges whether this argument inclusive max value. More... | |
| double | getInclusiveMaxValue (const double dfValue=0.0) |
| gets max inclusive value More... | |
| void | setExclusiveMinValue (const double value) |
| sets exclusive min value More... | |
| bool | hasExclusiveMinValue () |
| judges whether this argument exclusive min value. More... | |
| double | getExclusiveMinValue (const double dfValue=0.0) |
| gets min exclusive value More... | |
| void | setExclusiveMaxValue (const double value) |
| sets exclusive max value More... | |
| bool | hasExclusiveMaxValue () |
| judges whether this argument exclusive max value. More... | |
| double | getExclusiveMaxValue (const double dfValue=0.0) |
| gets max exclusive value More... | |
| double | getLowerBound (const double dfValue=0.0) |
| gets lower bound value More... | |
| double | getUpperBound (const double dfValue=0.0) |
| gets upper bound value More... | |
| bool | checkDoubleValue (const double value) |
| checks real number value is in the specified range More... | |
| bool | checkIntValue (const int value) |
| checks integer value is in the specified range More... | |
| std::string | getRangeStr (const char *name) |
| gets character string that means value range More... | |
Protected Attributes | |
| boost::optional< double > | m_minInclusive |
| boost::optional< double > | m_maxInclusive |
| boost::optional< double > | m_minExclusive |
| boost::optional< double > | m_maxExclusive |
the restriction of number class
Definition at line 26 of file NumberRestriction.h.
| bool kome::core::NumberRestriction::checkDoubleValue | ( | const double | value | ) |
checks real number value is in the specified range
| [in] | value | value to be checked |
Definition at line 169 of file NumberRestriction.cpp.
| bool kome::core::NumberRestriction::checkIntValue | ( | const int | value | ) |
checks integer value is in the specified range
| [in] | value | value to be checked |
Definition at line 202 of file NumberRestriction.cpp.

| double kome::core::NumberRestriction::getExclusiveMaxValue | ( | const double | dfValue = 0.0 | ) |
gets max exclusive value
| [in] | dfValue | default value |
Definition at line 119 of file NumberRestriction.cpp.
| double kome::core::NumberRestriction::getExclusiveMinValue | ( | const double | dfValue = 0.0 | ) |
gets min exclusive value
| [in] | dfValue | default value |
Definition at line 98 of file NumberRestriction.cpp.
| double kome::core::NumberRestriction::getInclusiveMaxValue | ( | const double | dfValue = 0.0 | ) |
gets max inclusive value
| [in] | dfValue | default value |
Definition at line 77 of file NumberRestriction.cpp.
| double kome::core::NumberRestriction::getInclusiveMinValue | ( | const double | dfValue = 0.0 | ) |
gets min inclusive value
| [in] | dfValue | default value |
Definition at line 56 of file NumberRestriction.cpp.
| double kome::core::NumberRestriction::getLowerBound | ( | const double | dfValue = 0.0 | ) |
gets lower bound value
| [in] | dfValue | default value |
Definition at line 127 of file NumberRestriction.cpp.
| std::string kome::core::NumberRestriction::getRangeStr | ( | const char * | name | ) |
gets character string that means value range
| [in] | name | number value name |
Definition at line 235 of file NumberRestriction.cpp.
| double kome::core::NumberRestriction::getUpperBound | ( | const double | dfValue = 0.0 | ) |
gets upper bound value
| [in] | dfValue | default value |
Definition at line 148 of file NumberRestriction.cpp.
| bool kome::core::NumberRestriction::hasExclusiveMaxValue | ( | ) |
judges whether this argument exclusive max value.
Definition at line 111 of file NumberRestriction.cpp.
| bool kome::core::NumberRestriction::hasExclusiveMinValue | ( | ) |
judges whether this argument exclusive min value.
Definition at line 90 of file NumberRestriction.cpp.
| bool kome::core::NumberRestriction::hasInclusiveMaxValue | ( | ) |
judges whether this argument inclusive max value.
Definition at line 69 of file NumberRestriction.cpp.
| bool kome::core::NumberRestriction::hasInclusiveMinValue | ( | ) |
judges whether this argument inclusive min value.
Definition at line 48 of file NumberRestriction.cpp.
| void kome::core::NumberRestriction::setExclusiveMaxValue | ( | const double | value | ) |
sets exclusive max value
| [in] | value | exclusive max value |
Definition at line 106 of file NumberRestriction.cpp.
| void kome::core::NumberRestriction::setExclusiveMinValue | ( | const double | value | ) |
sets exclusive min value
| [in] | value | exclusive min value |
Definition at line 85 of file NumberRestriction.cpp.
| void kome::core::NumberRestriction::setInclusiveMaxValue | ( | const double | value | ) |
sets inclusive max value
| [in] | value | inclusive max value |
Definition at line 64 of file NumberRestriction.cpp.
| void kome::core::NumberRestriction::setInclusiveMinValue | ( | const double | value | ) |
sets inclusive min value
| [in] | value | inclusive min value |
Definition at line 43 of file NumberRestriction.cpp.
|
protected |
exclusive maximum value
Definition at line 48 of file NumberRestriction.h.
|
protected |
inclusive maximum value
Definition at line 44 of file NumberRestriction.h.
|
protected |
exclusive minimum value
Definition at line 46 of file NumberRestriction.h.
|
protected |
inclusive minimum value
Definition at line 42 of file NumberRestriction.h.
1.8.6