VTK-m  2.0
Public Types | Static Public Member Functions | List of all members
vtkm::TypeTraits< T > Class Template Reference

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>

Inheritance diagram for vtkm::TypeTraits< T >:
vtkm::TypeTraits< const T >

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 VTKM_EXEC_CONTZeroInitialization ()
 

Detailed Description

template<typename T>
class vtkm::TypeTraits< T >

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.

Member Typedef Documentation

◆ DimensionalityTag

template<typename T >
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.

◆ NumericTag

template<typename T >
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.

Member Function Documentation

◆ ZeroInitialization()

template<typename T >
static VTKM_EXEC_CONT T vtkm::TypeTraits< T >::ZeroInitialization ( )
inlinestatic

The documentation for this class was generated from the following file: