Viskores  1.0
Classes | Namespaces | Macros
TypeTraits.h File Reference
#include <viskores/Types.h>

Go to the source code of this file.

Classes

struct  viskores::TypeTraitsUnknownTag
 Tag used to identify types that aren't Real, Integer, Scalar or Vector. More...
 
struct  viskores::TypeTraitsRealTag
 Tag used to identify types that store real (floating-point) numbers. More...
 
struct  viskores::TypeTraitsIntegerTag
 Tag used to identify types that store integer numbers. More...
 
struct  viskores::TypeTraitsScalarTag
 Tag used to identify 0 dimensional types (scalars). More...
 
struct  viskores::TypeTraitsVectorTag
 Tag used to identify 1 dimensional types (vectors). More...
 
class  viskores::TypeTraits< T >
 The TypeTraits class provides helpful compile-time information about the basic types used in Viskores (and a few others for convenience). More...
 
struct  viskores::TypeTraits< const T >
 
struct  viskores::TypeTraits< float >
 Traits for basic C++ types. More...
 
struct  viskores::TypeTraits< double >
 
struct  viskores::TypeTraits< bool >
 
struct  viskores::TypeTraits< char >
 
struct  viskores::TypeTraits< signed char >
 
struct  viskores::TypeTraits< unsigned char >
 
struct  viskores::TypeTraits< short >
 
struct  viskores::TypeTraits< unsigned short >
 
struct  viskores::TypeTraits< int >
 
struct  viskores::TypeTraits< unsigned int >
 
struct  viskores::TypeTraits< long >
 
struct  viskores::TypeTraits< unsigned long >
 
struct  viskores::TypeTraits< long long >
 
struct  viskores::TypeTraits< unsigned long long >
 
struct  viskores::TypeTraits< viskores::Vec< T, Size > >
 Traits for Vec types. More...
 
struct  viskores::TypeTraits< viskores::VecCConst< T > >
 Traits for VecCConst types. More...
 
struct  viskores::TypeTraits< viskores::VecC< T > >
 Traits for VecC types. More...
 
struct  viskores::TypeTraits< viskores::Pair< T, U > >
 Traits for Pair types. More...
 

Namespaces

 viskores
 Groups connected points that have the same field value.
 

Macros

#define VISKORES_BASIC_REAL_TYPE(T)
 
#define VISKORES_BASIC_INTEGER_TYPE(T)
 

Macro Definition Documentation

◆ VISKORES_BASIC_INTEGER_TYPE

#define VISKORES_BASIC_INTEGER_TYPE (   T)
Value:
template <> \
struct TypeTraits<T> \
{ \
using NumericTag = TypeTraitsIntegerTag; \
using DimensionalityTag = TypeTraitsScalarTag; \
VISKORES_EXEC_CONT static T ZeroInitialization() \
{ \
using ReturnType = T; \
return ReturnType(); \
} \
};

◆ VISKORES_BASIC_REAL_TYPE

#define VISKORES_BASIC_REAL_TYPE (   T)
Value:
template <> \
struct TypeTraits<T> \
{ \
using NumericTag = TypeTraitsRealTag; \
using DimensionalityTag = TypeTraitsScalarTag; \
VISKORES_EXEC_CONT static T ZeroInitialization() \
{ \
return T(); \
} \
};