Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/rtti/Tuple.h>
Public Member Functions | |
virtual | ~Tuple () |
virtual const Vector< const rtti::Type * > & | types () const =0 |
virtual void | split (void *ptr, Vector< Variant > &values) const =0 |
virtual void * | make (const Vector< Variant > &values, int i=0) const =0 |
int | count () const |
This interface provides access to member of a tuple class. A tuple class is a class of object which identity is not important. They are used as scalar values as int, float, etc. A good example of tuple class would be a class representing complex numbers.
|
virtual |
|
inline |
Count the number of components in the tuple.
References Tuple::types().
Build a tuple objects from its components. The component order in values arrays must be the same as type as types returned by Tuple::types().
values | Values composing the tuple object. |
i | Index to start reading components from. |
Implemented in Tuple1< T, A >.
Decompose a tuple object in its component. The component order in values arrays must be the same as type as types returned by Tuple::types().
ptr | Object to decompose. |
values | Result variant vector made of components of the object. |
Implemented in Tuple1< T, A >.
|
pure virtual |
Get the types of the values composing the object.
Implemented in AbstractTuple< T >.
Referenced by Tuple::count().