![]() |
KVIrc
4.9.2
DeveloperAPIs
|
A class which maps every number. More...
#include <KviKvsVariant.h>
Classes | |
| union | DataType |
| This union holds an integer or a double floating point number. More... | |
Public Types | |
| enum | Type { Real, Integer } |
| Describes the type of number. More... | |
Public Member Functions | |
| kvs_int_t | integer () const |
| Return the integer number if the number itself is an integer. More... | |
| bool | isInteger () const |
| Returns true if the number is an integer. More... | |
| bool | isReal () const |
| Returns true if the number is a double floating point. More... | |
| kvs_real_t | real () const |
| Return the real number if the number itself is a double floating point. More... | |
| Type | type () const |
| Returns the type of the number. More... | |
Protected Attributes | |
| Type | m_type |
| DataType | m_u |
Friends | |
| class | KviKvsVariant |
A class which maps every number.
| enum KviKvsNumber::Type |
|
inline |
Return the integer number if the number itself is an integer.
Referenced by KviKvsTreeNodeExpressionUnaryOperatorNegate::evaluateReadOnly(), KviKvsTreeNodeExpressionUnaryOperatorBitwiseNot::evaluateReadOnly(), KviKvsTreeNodeSpecialCommandSwitchLabelCase::execute(), KviKvsTreeNodeOperationSelfDivision::execute(), KviKvsTreeNodeOperationSelfModulus::execute(), KviKvsTreeNodeOperationSelfMultiplication::execute(), KviKvsTreeNodeOperationSelfSubtraction::execute(), KviKvsTreeNodeOperationSelfSum::execute(), and str_kvs_fnc_isunsignednumber().
|
inline |
Returns true if the number is an integer.
Referenced by KviKvsTreeNodeSpecialCommandSwitchLabelCase::execute(), KviKvsTreeNodeOperationSelfDivision::execute(), KviKvsTreeNodeOperationSelfModulus::execute(), KviKvsTreeNodeOperationSelfMultiplication::execute(), KviKvsTreeNodeOperationSelfSubtraction::execute(), KviKvsTreeNodeOperationSelfSum::execute(), and str_kvs_fnc_isunsignednumber().
|
inline |
Returns true if the number is a double floating point.
Referenced by KviKvsTreeNodeExpressionUnaryOperatorNegate::evaluateReadOnly(), and KviKvsTreeNodeExpressionUnaryOperatorBitwiseNot::evaluateReadOnly().
|
inline |
Return the real number if the number itself is a double floating point.
Referenced by KviKvsTreeNodeExpressionUnaryOperatorNegate::evaluateReadOnly(), KviKvsTreeNodeExpressionUnaryOperatorBitwiseNot::evaluateReadOnly(), KviKvsTreeNodeSpecialCommandSwitchLabelCase::execute(), KviKvsTreeNodeOperationSelfDivision::execute(), KviKvsTreeNodeOperationSelfModulus::execute(), KviKvsTreeNodeOperationSelfMultiplication::execute(), KviKvsTreeNodeOperationSelfSubtraction::execute(), KviKvsTreeNodeOperationSelfSum::execute(), and str_kvs_fnc_isunsignednumber().
|
inline |
Returns the type of the number.
|
friend |
|
protected |
Referenced by KviKvsVariant::asNumber(), and KviKvsVariant::castToNumber().
|
protected |
Referenced by KviKvsVariant::asNumber(), and KviKvsVariant::castToNumber().
1.8.7