|
Public Types |
enum | Type {
TYPE_NIL = 0,
TYPE_BOOL,
TYPE_INTEGER,
TYPE_ANGLE,
TYPE_TIME,
TYPE_REAL,
TYPE_VECTOR,
TYPE_COLOR,
TYPE_SEGMENT,
TYPE_BLINEPOINT,
TYPE_LIST,
TYPE_CANVAS,
TYPE_STRING,
TYPE_GRADIENT,
TYPE_END
} |
Public Member Functions |
| ValueBase () |
template<typename T> |
| ValueBase (const T &x, bool loop_=false) |
| ValueBase (Type x) |
| ~ValueBase () |
template<class T> |
ValueBase & | operator= (const T &x) |
ValueBase & | operator= (const ValueBase &x) |
bool | operator== (const ValueBase &rhs) const |
bool | operator!= (const ValueBase &rhs) const |
const ValueBase & | operator[] (int index) const |
| Constant index operator for when value is of type TYPE_LIST.
|
void | clear () |
bool | get_loop () const |
void | set_loop (bool x) |
bool | empty () const |
Type | get_contained_type () const |
bool | is_valid () const |
| Returns true if the contained value is defined and valid.
|
String | type_name () const |
| Returns a string containing the name of the type.
|
const Type & | get_type () const |
| Returns the type of the contained value.
|
template<class T> |
bool | same_as (const T &x) const |
| Checks the type of the parameter against itself. Returns true if they are of the same type.
|
template<typename T> |
const T & | get (const T &x) const |
float | get (const float &) const |
etl::loose_handle< Canvas > | get (const etl::handle< Canvas > &) const |
etl::loose_handle< Canvas > | get (Canvas *) const |
const char * | get (const char *) const |
const list_type & | get_list () const |
template<typename T> |
void | put (T *x) const |
void | put (float *x) const |
void | put (char **x) const |
template<typename T> |
void | set (const T &x) |
void | set (const float &x) |
void | set (const list_type &x) |
void | set (const char *x) |
void | set (Canvas *x) |
void | set (etl::loose_handle< Canvas > x) |
void | set (etl::handle< Canvas > x) |
template<class T> |
void | set (const std::vector< T > &x) |
template<class T> |
void | set (const std::list< T > &x) |
| operator const list_type & () const |
| operator const Vector & () const |
| operator const BLinePoint & () const |
| operator const Segment & () const |
| operator const Angle & () const |
template<class T> |
| operator std::list () const |
template<class T> |
| operator std::vector () const |
Static Public Member Functions |
static String | type_name (Type id) |
| Returns a string containing the name of the given Type.
|
static Type | ident_type (const String &str) |
| Returns a the corresponding Type of the described type.
|
static const Type | get_type (bool) |
static const Type | get_type (int) |
static const Type | get_type (const Time &) |
static const Type | get_type (const Real &) |
static const Type | get_type (const float &) |
static const Type | get_type (const Vector &) |
static const Type | get_type (const Color &) |
static const Type | get_type (const Segment &) |
static const Type | get_type (const BLinePoint &) |
static const Type | get_type (const String &) |
static const Type | get_type (const Gradient &) |
static const Type | get_type (Canvas *) |
static const Type | get_type (const etl::handle< Canvas > &) |
static const Type | get_type (const etl::loose_handle< Canvas > &) |
static const Type | get_type (const list_type &) |
template<class T> |
static const Type | get_type (const std::vector< T > &x) |
template<class T> |
static const Type | get_type (const std::list< T > &x) |
static const Type | get_type (const Angle &) |
Protected Attributes |
Type | type |
void * | data |
etl::reference_counter | ref_count |
bool | loop_ |