SG::AuxDataTraits< bool > Class Template Reference

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

#include <AuxDataTraits.h>

List of all members.

Public Types

typedef bool element_type
 The type the user sees.
typedef bool & reference_type
 Reference types returned by aux data accessors.
typedef const bool & const_reference_type
typedef std::vector< char > 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)

Detailed Description

template<>
class SG::AuxDataTraits< bool >

Allow customizing how aux data types are treated.

Special case for bool variables.

T here is the type that the user requests, eg in the template argument of a decorator.


Member Function Documentation

static const_reference_type SG::AuxDataTraits< bool >::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< bool >::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 15 Apr 2017 for RootCore Packages by  doxygen 1.6.1