Allow customizing how aux data types are treated. More...
#include <AuxDataTraits.h>
Public Types | |
| typedef T | element_type |
| The type the user sees. | |
| typedef T & | reference_type |
| Reference types returned by aux data accessors. | |
| typedef const T & | const_reference_type |
| typedef std::vector< T > | vector_type |
| Container type used to store this variable. | |
| typedef vector_type::pointer | container_pointer_type |
| Pointers to the data within the container. | |
| typedef vector_type::const_pointer | const_container_pointer_type |
Static Public Member Functions | |
| static reference_type | index (void *ptr, size_t ndx) |
| static const_reference_type | index (const void *ptr, size_t ndx) |
Allow customizing how aux data types are treated.
T here is the type that the user requests, eg in the template argument of a decorator.
| static const_reference_type SG::AuxDataTraits< T >::index | ( | const void * | ptr, | |
| size_t | ndx | |||
| ) | [inline, static] |
Look up an element in the container by index. ptr is a pointer to the start of the container's data.
| static reference_type SG::AuxDataTraits< T >::index | ( | void * | ptr, | |
| size_t | ndx | |||
| ) | [inline, static] |
Look up an element in the container by index. ptr is a pointer to the start of the container's data.
1.6.1