HxExternalArgumentValues Class¶
-
class HxExternalArgumentValues¶
Argument values for external functions. Argument values are used to query the values of the arguments passed to external functions.
- Since:
9.5
Summary¶
Returns the number of values in the current argument values. |
|
Returns true if the value at the given position is a boolean. |
|
Returns true if the value at the given position is an integer. |
|
Returns true if the value at the given position is a double. |
|
Returns true if the value at the given position is an interval. |
|
Returns true if the value at the given position is a collection (list or set). |
|
Returns true if the value at the given position is an array. |
|
Returns the integer value at the given position. |
|
Returns the double value at the given position. |
|
Returns the interval value at the given position. |
|
Returns the collection value at the given position. |
|
Returns the array value at the given position. |
Functions¶
-
int HxExternalArgumentValues::count() const¶
Returns the number of values in the current argument values. Values are indexed from 0 to count() - 1.
-
bool HxExternalArgumentValues::isBool(int pos) const¶
Returns true if the value at the given position is a boolean. You can retrieve the value with
getIntValue()
.- Parameters:
pos – Position of the value to query.
- Returns:
True if the value at the given position is a boolean.
-
bool HxExternalArgumentValues::isInt(int pos) const¶
Returns true if the value at the given position is an integer. You can retrieve the value with
getIntValue()
.- Parameters:
pos – Position of the value to query.
- Returns:
True if the value at the given position is an integer.
-
bool HxExternalArgumentValues::isDouble(int pos) const¶
Returns true if the value at the given position is a double. You can retrieve the value with
getDoubleValue()
.- Parameters:
pos – Position of the value to query.
- Returns:
True if the value at the given position is a double.
-
bool HxExternalArgumentValues::isIntervalValue(int pos) const¶
Returns true if the value at the given position is an interval. You can retrieve the value with
getIntervalValue()
.- Parameters:
pos – Position of the value to query.
- Returns:
True if the value at the given position is an interval.
-
bool HxExternalArgumentValues::isCollection(int pos) const¶
Returns true if the value at the given position is a collection (list or set). You can retrieve the value with
getCollectionValue()
.- Parameters:
pos – Position of the value to query.
- Returns:
True if the value at the given position is a collection.
-
bool HxExternalArgumentValues::isArray(int pos) const¶
Returns true if the value at the given position is an array. You can retrieve the value with
getArrayValue()
.- Parameters:
pos – Position of the value to query.
- Returns:
True if the value at the given position is an array.
-
hxint HxExternalArgumentValues::getIntValue(int pos) const¶
Returns the integer value at the given position. If the value is neither an integer nor a boolean, an exception is thrown.
- Parameters:
pos – Position of the value to query.
- Returns:
Integer value.
-
hxdouble HxExternalArgumentValues::getDoubleValue(int pos) const¶
Returns the double value at the given position. If the value is not a double, an exception is thrown.
- Parameters:
pos – Position of the value to query.
- Returns:
Double value.
-
hxdouble HxExternalArgumentValues::getIntervalValue(int pos) const¶
Returns the interval value at the given position. If the value is not an interval, an exception is thrown.
- Parameters:
pos – Position of the value to query.
- Returns:
Interval value.
-
HxCollection HxExternalArgumentValues::getCollectionValue(int pos) const¶
Returns the collection value at the given position. If the value is not a collection (list or set), an exception is thrown. Note that the returned collection is read only.
- Parameters:
pos – Position of the value to query.
- Returns:
Collection value.
-
HxArray HxExternalArgumentValues::getArrayValue(int pos) const¶
Returns the array value at the given position. If the value is not an array, an exception is thrown.
- Parameters:
pos – Position of the value to query.
- Returns:
Array value.