HxmValue Class¶
-
class HxmValue¶
General value container. Any value can be contained in an instance of this class (integer, double, boolean, string, HxExpression, module, map, function and also non exposed types like files or dates).
- Since:
10.0
Summary¶
Returns the type of the value. |
|
Returns true if the value is nil. |
|
Returns true if the value is an integer value. |
|
Returns true if the value is a double value. |
|
Returns true if the value is a boolean value. |
|
Returns true if the value is an HxExpression. |
|
Returns true if the value is a string value. |
|
Returns true if the value is an HxmMap. |
|
Returns true if the value is an HxmFunction. |
|
Returns true if the value is an HxmModule. |
|
Returns the value as an integer. |
|
Returns the value as a double. |
|
Returns the value as a boolean. |
|
Returns the value as a HxExpression. |
|
Returns the value as a string. |
|
Returns the value as an HxmMap. |
|
Returns the value as an HxmFunction. |
|
Returns the value as an HxmModule. |
Returns the value as an integer. |
|
Returns the value as a double. |
|
Returns the value as a boolean. |
|
Returns the value as a HxExpression. |
|
Returns the value as a string. |
|
Returns the value as an HxmMap. |
|
Returns the value as an HxmFunction. |
|
Returns the value as an HxmModule. |
Functions¶
-
bool HxmValue::isExpression() const¶
Returns true if the value is an
HxExpression
.
-
bool HxmValue::isFunction() const¶
Returns true if the value is an
HxmFunction
.
-
HxExpression HxmValue::asExpression() const¶
Returns the value as a
HxExpression
. The value must be a HxExpression.
-
HxmFunction HxmValue::asFunction() const¶
Returns the value as an
HxmFunction
. The value must be a function.
Overloaded operators¶
-
explicit operator HxmValue::hxint() const¶
Returns the value as an integer. The value must be an integer.
-
explicit operator HxmValue::hxdouble() const¶
Returns the value as a double. The value must be a double.
-
explicit operator HxmValue::bool_() const¶
Returns the value as a boolean. The value must be a boolean.
-
explicit operator HxmValue::HxExpression() const¶
Returns the value as a
HxExpression
. The value must be a HxExpression.
-
explicit operator HxmValue::std::string() const¶
Returns the value as a string. The value must be a string.
-
explicit operator HxmValue::HxmMap() const¶
Returns the value as an
HxmMap
. The value must be a map.
-
explicit operator HxmValue::HxmFunction() const¶
Returns the value as an
HxmFunction
. The value must be a function.