SOFA API  1df67014
Open source framework for multi-physics simuation
sofa::defaulttype::ScalarTypeInfo< TDataType > Struct Template Reference

#include <ScalarTypeInfo.h>

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

Static Public Member Functions

static sofa::Size size ()
 
static sofa::Size byteSize ()
 
static sofa::Size size (const DataType &)
 
static bool setSize (DataType &, sofa::Size)
 
template<typename T >
static void getValue (const DataType &data, sofa::Size index, T &value)
 
template<typename T >
static void setValue (DataType &data, sofa::Size index, const T &value)
 
static void getValueString (const DataType &data, sofa::Size index, std::string &value)
 
static void setValueString (DataType &data, sofa::Size index, const std::string &value)
 
static const void * getValuePtr (const DataType &data)
 
static void * getValuePtr (DataType &data)
 

Function details

◆ byteSize()

template<class TDataType >
static sofa::Size sofa::defaulttype::ScalarTypeInfo< TDataType >::byteSize ( )
inlinestatic

◆ getValue()

template<class TDataType >
template<typename T >
static void sofa::defaulttype::ScalarTypeInfo< TDataType >::getValue ( const DataType data,
sofa::Size  index,
T &  value 
)
inlinestatic

◆ getValuePtr() [1/2]

template<class TDataType >
static const void* sofa::defaulttype::ScalarTypeInfo< TDataType >::getValuePtr ( const DataType data)
inlinestatic

◆ getValuePtr() [2/2]

template<class TDataType >
static void* sofa::defaulttype::ScalarTypeInfo< TDataType >::getValuePtr ( DataType data)
inlinestatic

◆ getValueString()

template<class TDataType >
static void sofa::defaulttype::ScalarTypeInfo< TDataType >::getValueString ( const DataType data,
sofa::Size  index,
std::string &  value 
)
inlinestatic

◆ setSize()

template<class TDataType >
static bool sofa::defaulttype::ScalarTypeInfo< TDataType >::setSize ( DataType ,
sofa::Size   
)
inlinestatic

◆ setValue()

template<class TDataType >
template<typename T >
static void sofa::defaulttype::ScalarTypeInfo< TDataType >::setValue ( DataType data,
sofa::Size  index,
const T &  value 
)
inlinestatic

◆ setValueString()

template<class TDataType >
static void sofa::defaulttype::ScalarTypeInfo< TDataType >::setValueString ( DataType data,
sofa::Size  index,
const std::string &  value 
)
inlinestatic

◆ size() [1/2]

template<class TDataType >
static sofa::Size sofa::defaulttype::ScalarTypeInfo< TDataType >::size ( )
inlinestatic

◆ size() [2/2]

template<class TDataType >
static sofa::Size sofa::defaulttype::ScalarTypeInfo< TDataType >::size ( const DataType )
inlinestatic

Enum details

◆ anonymous enum

template<class TDataType >
anonymous enum
Enumerator
ValidInfo 

◆ anonymous enum

template<class TDataType >
anonymous enum
Enumerator
FixedSize 

◆ anonymous enum

template<class TDataType >
anonymous enum
Enumerator
ZeroConstructor 

◆ anonymous enum

template<class TDataType >
anonymous enum
Enumerator
SimpleCopy 

◆ anonymous enum

template<class TDataType >
anonymous enum
Enumerator
SimpleLayout 

◆ anonymous enum

template<class TDataType >
anonymous enum
Enumerator
Integer 

◆ anonymous enum

template<class TDataType >
anonymous enum
Enumerator
Scalar 

◆ anonymous enum

template<class TDataType >
anonymous enum
Enumerator
Text 

◆ anonymous enum

template<class TDataType >
anonymous enum
Enumerator
CopyOnWrite 

◆ anonymous enum

template<class TDataType >
anonymous enum
Enumerator
Container 

◆ anonymous enum

template<class TDataType >
anonymous enum
Enumerator
Size