SOFA API  014b24ea
Open source framework for multi-physics simuation
sofa::helper::testing::data_traits< _DataTypes > Struct Template Reference

#include <NumericTest.h>

Detailed Description

template<class _DataTypes>
struct sofa::helper::testing::data_traits< _DataTypes >

Helpers for DataTypes. Includes copies to and from vectors of scalars.

Static Public Member Functions

template<class VectorOfScalars >
static void VecCoord_to_Vector (VectorOfScalars &vec, const VecCoord &vcoord)
 Resize a vector of scalars, and copies a VecCoord in it. More...
 
template<class VectorOfScalars >
static void VecDeriv_to_Vector (VectorOfScalars &vec, const VecDeriv vderiv)
 Resize a vector of scalars, and copies a VecDeriv in it. More...
 

Function details

template<class _DataTypes >
template<class VectorOfScalars >
static void sofa::helper::testing::data_traits< _DataTypes >::VecCoord_to_Vector ( VectorOfScalars &  vec,
const VecCoord vcoord 
)
inlinestatic

Resize a vector of scalars, and copies a VecCoord in it.

template<class _DataTypes >
template<class VectorOfScalars >
static void sofa::helper::testing::data_traits< _DataTypes >::VecDeriv_to_Vector ( VectorOfScalars &  vec,
const VecDeriv  vderiv 
)
inlinestatic

Resize a vector of scalars, and copies a VecDeriv in it.

Enum details

template<class _DataTypes >
anonymous enum
Enumerator
spatial_dimensions 
template<class _DataTypes >
anonymous enum
Enumerator
coord_total_size 
template<class _DataTypes >
anonymous enum
Enumerator
deriv_total_size