| << ValueFloat |
| ValueBox >> |
|
Stores two values: a minimum and a maximum.
Both a and b are optional. It is required that both a and b are numeric.
The syntax in CRL is: a..b if both are present. As both may be missing, the following are also correct CRL syntax:
a..
..b
..
Most efficiently, a range's minimum and maximum slots can be accessed by minimum() and maximum() slot access functions.
Generically (see CrlStructure), a range's minimum and maximum can be accessed as a vector, which always has two elements:
index 0 :: ValueNumeric equal to minimum(),
index 1 :: ValueNumeric equal to maximum().
Further, a Range emulates a map and always has the attributes
"minimum" :: ValueNumeric equal to minimum()
"maximum" :: ValueNumeric equal to maximum()
This wrapper is especially implemented for environments where only the CrlStructure interface is available, but not the interface for this special class, particularly in OptLa. If you use the native C/C++ library interface, better use the slot access directly.
Immediate super class: ValueNumeric
| ValueNumericSimple * | maximum |
| ValueNumericSimple * | minimum |
| int | Object:: | class_id |
| int | Object:: | heap_sig |
| int | Object:: | ref_count |
| UserData | Object:: | user_data |
| CrlValueRange | () | |||
| CrlValueRange | (unsigned_t) | |||
| CrlValueRange | (unsigned_t, unsigned_t) | |||
| CrlValueRange | (Value *) | |||
| CrlValueRange | (Value *, Value *) | |||
| CrlValueRange | (ValueRange const &) | |||
| void | operator= | (ValueRange const &) | ||
| Value * | find | (char const * key) const | ||
| bool | find | (float_t & result, char const * key) const | ||
| bool | find | (float_t & result, Value const * key) const | ||
| bool | find | (signed_t & result, char const * key) const | ||
| bool | find | (signed_t & result, Value const * key) const | ||
| bool | find | (unsigned_t & result, char const * key) const | ||
| bool | find | (unsigned_t & result, Value const * key) const | ||
| Value * | find | (Value const * key) const | ||
| bool | find_bool | (char const * key) const | ||
| bool | find_bool | (Value const * key) const | ||
| bool | find_bool_sym | (symbol_t key) const | ||
| byte_t | find_byte | (char const * key) const | ||
| byte_t | find_byte | (Value const * key) const | ||
| byte_t | find_byte_sym | (symbol_t key) const | ||
| int | find_int | (char const * key) const | ||
| int | find_int | (Value const * key) const | ||
| int | find_int_sym | (symbol_t key) const | ||
| Item * | find_item | (char const * key) const | ||
| Item * | find_item | (Value const * key) const | ||
| Item * | find_item_sym | (symbol_t key) const | ||
| char const * | find_string | (char const * key) const | ||
| char const * | find_string | (Value const * key) const | ||
| char const * | find_string_sym | (symbol_t key) const | ||
| Value * | find_sym | (symbol_t key) const | ||
| bool | find_sym | (float_t & result, symbol_t key) const | ||
| bool | find_sym | (signed_t & result, symbol_t key) const | ||
| bool | find_sym | (unsigned_t & result, symbol_t key) const | ||
| symbol_t | find_symbol | (char const * key) const | ||
| symbol_t | find_symbol | (Value const * key) const | ||
| symbol_t | find_symbol_sym | (symbol_t key) const | ||
| word32_t | find_word32 | (char const * key) const | ||
| word32_t | find_word32 | (Value const * key) const | ||
| word32_t | find_word32_sym | (symbol_t key) const | ||
| Value * | get | () | ||
| Value const * | get | () const | ||
| bool | get | (float_t & result) const | ||
| bool | has | (signed_t key) const | ||
| bool | has | (char const * key) const | ||
| bool | has | (Value const * key) const | ||
| bool | has_sym | (symbol_t key) const | ||
| bool | invalidate | () | ||
| bool | is_special | (signed_t key) const | ||
| bool | is_special | (char const * key) const | ||
| bool | is_special | (Value const * key) const | ||
| bool | is_special_sym | (symbol_t key) const | ||
| bool | is_valid | () const | ||
| bool | is_valid_special | () const | ||
| ValueNumericSimple * | maximum | () const | ||
| ValueNumericSimple * | minimum | () const | ||
| Value * | nth | (signed_t key) const | ||
| bool | nth | (float_t & result, signed_t key) const | ||
| bool | nth | (signed_t & result, signed_t key) const | ||
| bool | nth | (unsigned_t & result, signed_t key) const | ||
| bool | nth_bool | (signed_t key) const | ||
| byte_t | nth_byte | (signed_t key) const | ||
| int | nth_int | (signed_t key) const | ||
| Item * | nth_item | (signed_t key) const | ||
| char const * | nth_string | (signed_t key) const | ||
| symbol_t | nth_symbol | (signed_t key) const | ||
| word32_t | nth_word32 | (signed_t key) const | ||
| bool | poke | (Value * value) | ||
| bool | poke | (Item * value) | ||
| bool | poke | (char const * value) | ||
| bool | poke | (unsigned_t value) | ||
| bool | poke_float | (float_t value) | ||
| bool | poke_once | (Value * value) | ||
| bool | poke_once | (Item * value) | ||
| bool | poke_once | (char const * value) | ||
| bool | poke_once | (unsigned_t value) | ||
| bool | poke_once_float | (float_t value) | ||
| bool | poke_once_signed | (signed_t value) | ||
| bool | poke_once_symbol | (symbol_t value) | ||
| bool | poke_signed | (signed_t value) | ||
| bool | poke_symbol | (symbol_t value) | ||
| bool | reset | (signed_t key) | ||
| bool | reset | (char const * key) | ||
| bool | reset | (Value const * key) | ||
| void | reset_maximum | () | ||
| void | reset_minimum | () | ||
| bool | reset_sym | (symbol_t key) | ||
| bool | set | (signed_t key, Value * value) | ||
| bool | set | (char const * key, Value * value) | ||
| bool | set | (char const * key, Item * value) | ||
| bool | set | (signed_t key, Item * value) | ||
| bool | set | (signed_t key, char const * value) | ||
| bool | set | (signed_t key, unsigned_t value) | ||
| bool | set | (char const * key, char const * value) | ||
| bool | set | (char const * key, unsigned_t value) | ||
| bool | set | (Value const * key, Value * value) | ||
| bool | set | (Value const * key, Item * value) | ||
| bool | set | (Value const * key, char const * value) | ||
| bool | set | (Value const * key, unsigned_t value) | ||
| bool | set_float | (char const * key, float_t value) | ||
| bool | set_float | (signed_t key, float_t value) | ||
| bool | set_float | (Value const * key, float_t value) | ||
| void | set_maximum | (ValueNumericSimple *) | ||
| bool | set_maximum | (Value *) | ||
| bool | set_maximum | (AnyValue) | ||
| void | set_minimum | (ValueNumericSimple *) | ||
| bool | set_minimum | (Value *) | ||
| bool | set_minimum | (AnyValue) | ||
| bool | set_once | (signed_t key, Value * value) | ||
| bool | set_once | (char const * key, Value * value) | ||
| bool | set_once | (char const * key, Item * value) | ||
| bool | set_once | (signed_t key, Item * value) | ||
| bool | set_once | (signed_t key, char const * value) | ||
| bool | set_once | (signed_t key, unsigned_t value) | ||
| bool | set_once | (char const * key, char const * value) | ||
| bool | set_once | (char const * key, unsigned_t value) | ||
| bool | set_once | (Value const * key, Value * value) | ||
| bool | set_once | (Value const * key, Item * value) | ||
| bool | set_once | (Value const * key, char const * value) | ||
| bool | set_once | (Value const * key, unsigned_t value) | ||
| bool | set_once_float | (char const * key, float_t value) | ||
| bool | set_once_float | (signed_t key, float_t value) | ||
| bool | set_once_float | (Value const * key, float_t value) | ||
| bool | set_once_signed | (signed_t key, signed_t value) | ||
| bool | set_once_signed | (char const * key, signed_t value) | ||
| bool | set_once_signed | (Value const * key, signed_t value) | ||
| bool | set_once_sym | (symbol_t key, Value * value) | ||
| bool | set_once_sym | (symbol_t key, Item * value) | ||
| bool | set_once_sym | (symbol_t key, char const * value) | ||
| bool | set_once_sym | (symbol_t key, unsigned_t value) | ||
| bool | set_once_sym_float | (symbol_t key, float_t value) | ||
| bool | set_once_sym_signed | (symbol_t key, signed_t value) | ||
| bool | set_once_sym_symbol | (symbol_t key, symbol_t value) | ||
| bool | set_once_symbol | (signed_t key, symbol_t value) | ||
| bool | set_once_symbol | (char const * key, symbol_t value) | ||
| bool | set_once_symbol | (Value const * key, symbol_t value) | ||
| bool | set_signed | (signed_t key, signed_t value) | ||
| bool | set_signed | (char const * key, signed_t value) | ||
| bool | set_signed | (Value const * key, signed_t value) | ||
| bool | set_sym | (symbol_t key, Value * value) | ||
| bool | set_sym | (symbol_t key, Item * value) | ||
| bool | set_sym | (symbol_t key, char const * value) | ||
| bool | set_sym | (symbol_t key, unsigned_t value) | ||
| bool | set_sym_float | (symbol_t key, float_t value) | ||
| bool | set_sym_signed | (symbol_t key, signed_t value) | ||
| bool | set_sym_symbol | (symbol_t key, symbol_t value) | ||
| bool | set_symbol | (signed_t key, symbol_t value) | ||
| bool | set_symbol | (char const * key, symbol_t value) | ||
| bool | set_symbol | (Value const * key, symbol_t value) |
| C++: | CrlValueNumericSimple * CrlValueRange::minimum () const |
| C: | crl_value_numeric_simple_t * crl_value_range_get_minimum (crl_value_range_t const * self) |
Reader of slot 'minimum': The lowest possible value.
To write this slot, use set_minimum()/reset_minimum().
This reader is NULL safe; for this == NULL, it returns NULL.
#endif |
| C++: | void CrlValueRange::set_minimum (CrlValueNumericSimple *) |
| C: | void crl_value_range_set_minimum (crl_value_range_t * self, crl_value_numeric_simple_t *) |
Writer of slot 'minimum': The lowest possible value.
To read this slot, use minimum().
This writer must not be invoked with this == NULL.
#endif |
| C++: | void CrlValueRange::reset_minimum () |
| C: | void crl_value_range_reset_minimum (crl_value_range_t * self) |
NULL writer of slot 'minimum': The lowest possible value.
To read this slot, use minimum().
This writer must not be invoked with this == NULL.
#endif |
| C++: | CrlValueNumericSimple * CrlValueRange::maximum () const |
| C: | crl_value_numeric_simple_t * crl_value_range_get_maximum (crl_value_range_t const * self) |
Reader of slot 'maximum': The highest possible value.
To write this slot, use set_maximum()/reset_maximum().
This reader is NULL safe; for this == NULL, it returns NULL.
#endif |
| C++: | void CrlValueRange::set_maximum (CrlValueNumericSimple *) |
| C: | void crl_value_range_set_maximum (crl_value_range_t * self, crl_value_numeric_simple_t *) |
Writer of slot 'maximum': The highest possible value.
To read this slot, use maximum().
This writer must not be invoked with this == NULL.
#endif |
| C++: | void CrlValueRange::reset_maximum () |
| C: | void crl_value_range_reset_maximum (crl_value_range_t * self) |
NULL writer of slot 'maximum': The highest possible value.
To read this slot, use maximum().
This writer must not be invoked with this == NULL.
#endif |
| C++: | CrlValueRange::CrlValueRange () |
| C: | crl_value_range_t * crl_value_range_new (void) |
Creates a range with neither lower nor upper limit.
#endif |
| C++: | CrlValueRange::CrlValueRange (crl_unsigned_t) |
| C: | crl_value_range_t * crl_value_range_new_with_value_unsigned (crl_unsigned_t) |
Creates a range with lower limit = upper limit = given value
#endif |
| C++: | CrlValueRange::CrlValueRange (crl_unsigned_t, crl_unsigned_t) |
| C: | crl_value_range_t * crl_value_range_new_with_range_unsigned (crl_unsigned_t, crl_unsigned_t) |
Creates a range with both limits given.
#endif |
| C++: | CrlValueRange::CrlValueRange (CrlValue *) |
| C: | crl_value_range_t * crl_value_range_new_with_value (crl_value_t *) |
Creates a range with lower limit = upper limit = given value
#endif |
| C++: | CrlValueRange::CrlValueRange (CrlValue *, CrlValue *) |
| C: | crl_value_range_t * crl_value_range_new_with_range (crl_value_t *, crl_value_t *) |
Creates a range with both limits given.
#endif |
| C++: | CrlValueRange::CrlValueRange (CrlValueRange const &) |
| C: | crl_value_range_t * crl_value_range_new_copy (crl_value_range_t const *) |
Copy constructor
#endif |
| C++: | void CrlValueRange::operator= (CrlValueRange const &) |
| C: | void crl_value_range_assign (crl_value_range_t * self, crl_value_range_t const *) |
Assignment operator
#endif |
| C++: | bool CrlValueRange::set_minimum (CrlValue *) |
| C: | crl_bool_t crl_value_range_set_minimum_generic (crl_value_range_t * self, crl_value_t *) |
This in a convenience wrapper that tries to cast to <