SG::AuxDataTraits< T > Class Template Reference

Allow customizing how aux data types are treated. More...

#include <AuxDataTraits.h>

List of all members.

Public Types

typedef T element_type
 The type the user sees.
typedef Treference_type
 Reference types returned by aux data accessors.
typedef const Tconst_reference_type
typedef std::vector< Tvector_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)

Detailed Description

template<class T>
class SG::AuxDataTraits< T >

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.


Member Function Documentation

template<class T>
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.

template<class T>
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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 1 Dec 2017 for RootCore Packages by  doxygen 1.6.1