VTK-m
2.2
|
The TypeTraits class provides helpful compile-time information about the basic types used in VTKm (and a few others for convenience). More...
#include <TypeTraits.h>
Public Types | |
using | NumericTag = vtkm::TypeTraitsUnknownTag |
A tag to determine whether the type is integer or real. More... | |
using | DimensionalityTag = vtkm::TypeTraitsUnknownTag |
A tag to determine whether the type has multiple components. More... | |
Static Public Member Functions | |
static T | ZeroInitialization () |
A static function that returns 0 (or the closest equivalent to it) for the given type. More... | |
The TypeTraits class provides helpful compile-time information about the basic types used in VTKm (and a few others for convenience).
The majority of TypeTraits contents are typedefs to tags that can be used to easily override behavior of called functions.
using vtkm::TypeTraits< T >::DimensionalityTag = vtkm::TypeTraitsUnknownTag |
A tag to determine whether the type has multiple components.
This tag is either TypeTraitsScalarTag or TypeTraitsVectorTag. Scalars can also be treated as vectors with VecTraits.
using vtkm::TypeTraits< T >::NumericTag = vtkm::TypeTraitsUnknownTag |
A tag to determine whether the type is integer or real.
This tag is either TypeTraitsRealTag or TypeTraitsIntegerTag.
|
inlinestatic |
A static function that returns 0 (or the closest equivalent to it) for the given type.