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¶
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.