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

#include <NumericTest.h>

Detailed Description

template<class _DataTypes>
struct sofa::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

◆ VecCoord_to_Vector()

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

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

◆ VecDeriv_to_Vector()

template<class _DataTypes >
template<class VectorOfScalars >
static void sofa::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

◆ anonymous enum

template<class _DataTypes >
anonymous enum
Enumerator
spatial_dimensions 

◆ anonymous enum

template<class _DataTypes >
anonymous enum
Enumerator
coord_total_size 

◆ anonymous enum

template<class _DataTypes >
anonymous enum
Enumerator
deriv_total_size