LSPValue Class¶
-
class LSPValue¶
General value container. Any value can be contained in an instance of this class (integer, double, boolean, string, LSExpression, 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 localsolver::LSExpression. |
|
Returns true if the value is a string value. |
|
Returns true if the value is an LSPMap. |
|
Returns true if the value is an LSPFunction. |
|
Returns true if the value is an LSPModule. |
|
Returns the value as an integer. |
|
Returns the value as a double. |
|
Returns the value as a boolean. |
|
Returns the value as a localsolver::LSExpression. |
|
Returns the value as a string. |
|
Returns the value as an LSPMap. |
|
Returns the value as an LSPFunction. |
|
Returns the value as an LSPModule. |
Returns the value as an integer. |
|
Returns the value as a double. |
|
Returns the value as a boolean. |
|
Returns the value as a localsolver::LSExpression. |
|
Returns the value as a string. |
|
Returns the value as an LSPMap. |
|
Returns the value as an LSPFunction. |
|
Returns the value as an LSPModule. |
Functions¶
-
bool LSPValue::isExpression() const¶
Returns true if the value is an
localsolver::LSExpression
.
-
bool LSPValue::isFunction() const¶
Returns true if the value is an
LSPFunction
.
-
LSExpression LSPValue::asExpression() const¶
Returns the value as a
localsolver::LSExpression
. The value must be a LSExpression.
-
LSPFunction LSPValue::asFunction() const¶
Returns the value as an
LSPFunction
. The value must be a function.
Overloaded operators¶
-
explicit operator LSPValue::lsint() const¶
Returns the value as an integer. The value must be an integer.
-
explicit operator LSPValue::lsdouble() const¶
Returns the value as a double. The value must be a double.
-
explicit operator LSPValue::bool_() const¶
Returns the value as a boolean. The value must be a boolean.
-
explicit operator LSPValue::LSExpression() const¶
Returns the value as a
localsolver::LSExpression
. The value must be a LSExpression.
-
explicit operator LSPValue::std::string() const¶
Returns the value as a string. The value must be a string.
-
explicit operator LSPValue::LSPMap() const¶
Returns the value as an
LSPMap
. The value must be a map.
-
explicit operator LSPValue::LSPFunction() const¶
Returns the value as an
LSPFunction
. The value must be a function.