SOFA API  59c939c2
Open source framework for multi-physics simuation
sofa::defaulttype::DefaultDataTypeInfo< TDataType > Struct Template Reference

#include <DataTypeInfo.h>

Inheritance diagram for sofa::defaulttype::DefaultDataTypeInfo< TDataType >:

Static Public Member Functions

static size_t size ()
 
static size_t byteSize ()
 
static size_t size (const DataType &)
 
template<typename T >
static void getValue (const DataType &, size_t, T &)
 
static bool setSize (DataType &, size_t)
 
template<typename T >
static void setValue (DataType &, size_t, const T &)
 
static void getValueString (const DataType &, size_t, std::string &)
 
static void setValueString (DataType &, size_t, const std::string &)
 
static const void * getValuePtr (const DataType &)
 
static void * getValuePtr (DataType &)
 
static const char * name ()
 

Function details

template<class TDataType>
static size_t sofa::defaulttype::DefaultDataTypeInfo< TDataType >::byteSize ( )
inlinestatic
template<class TDataType>
template<typename T >
static void sofa::defaulttype::DefaultDataTypeInfo< TDataType >::getValue ( const DataType ,
size_t  ,
T &   
)
inlinestatic
template<class TDataType>
static const void* sofa::defaulttype::DefaultDataTypeInfo< TDataType >::getValuePtr ( const DataType )
inlinestatic
template<class TDataType>
static void* sofa::defaulttype::DefaultDataTypeInfo< TDataType >::getValuePtr ( DataType )
inlinestatic
template<class TDataType>
static void sofa::defaulttype::DefaultDataTypeInfo< TDataType >::getValueString ( const DataType ,
size_t  ,
std::string &   
)
inlinestatic
template<class TDataType>
static const char* sofa::defaulttype::DefaultDataTypeInfo< TDataType >::name ( )
inlinestatic
template<class TDataType>
static bool sofa::defaulttype::DefaultDataTypeInfo< TDataType >::setSize ( DataType ,
size_t   
)
inlinestatic
template<class TDataType>
template<typename T >
static void sofa::defaulttype::DefaultDataTypeInfo< TDataType >::setValue ( DataType ,
size_t  ,
const T &   
)
inlinestatic
template<class TDataType>
static void sofa::defaulttype::DefaultDataTypeInfo< TDataType >::setValueString ( DataType ,
size_t  ,
const std::string &   
)
inlinestatic
template<class TDataType>
static size_t sofa::defaulttype::DefaultDataTypeInfo< TDataType >::size ( void  )
inlinestatic
template<class TDataType>
static size_t sofa::defaulttype::DefaultDataTypeInfo< TDataType >::size ( const DataType )
inlinestatic

Enum details

template<class TDataType>
anonymous enum
Enumerator
ValidInfo 

1 if this type has valid infos

template<class TDataType>
anonymous enum
Enumerator
FixedSize 

1 if this type has a fixed size

template<class TDataType>
anonymous enum
Enumerator
ZeroConstructor 

1 if the constructor is equivalent to setting memory to 0

template<class TDataType>
anonymous enum
Enumerator
SimpleCopy 

1 if copying the data can be done with a memcpy

template<class TDataType>
anonymous enum
Enumerator
SimpleLayout 

1 if the layout in memory is simply N values of the same base type

template<class TDataType>
anonymous enum
Enumerator
Integer 

1 if this type uses integer values

template<class TDataType>
anonymous enum
Enumerator
Scalar 

1 if this type uses scalar values

template<class TDataType>
anonymous enum
Enumerator
Text 

1 if this type uses text values

template<class TDataType>
anonymous enum
Enumerator
CopyOnWrite 

1 if this type uses copy-on-write. The memory is shared with its source Data while only the source is changing (and the source modifications are then visible in the current Data). As soon as modifications are applied to the current Data, it will allocate its own value, and no longer shares memory with the source.

template<class TDataType>
anonymous enum
Enumerator
Container 

1 if this type is a container

template<class TDataType>
anonymous enum
Enumerator
Size 

largest known fixed size for this type, as returned by size()