Field3D
Traits.h File Reference
#include <assert.h>
#include <string>
#include <hdf5.h>
#include "Log.h"
#include "Types.h"
#include "ns.h"

Go to the source code of this file.

Classes

struct  DataTypeTraits< T >
 
class  FieldTraits< Data_T >
 
struct  NestedFieldType< Field_T >
 Used to return a string for the name of a nested templated field. More...
 
struct  TemplatedFieldType< Field_T >
 Used to return a string for the name of a templated field. More...
 

Macros

#define FIELD3D_DECL_DATATYPENAME(typeName)
 

Enumerations

enum  DataTypeEnum {
  DataTypeHalf =0, DataTypeUnsignedChar, DataTypeInt, DataTypeFloat,
  DataTypeDouble, DataTypeVecHalf, DataTypeVecFloat, DataTypeVecDouble,
  DataTypeUnknown
}
 

Detailed Description

This file contains the DataTypeTraits struct, with class functions for converting templatization into strings and enums.

Definition in file Traits.h.

Macro Definition Documentation

#define FIELD3D_DECL_DATATYPENAME (   typeName)
Value:
template<> \
inline std::string DataTypeTraits<typeName>::name() \
{ \
return std::string(#typeName); \
} \
static std::string name()
Definition: Traits.h:101

Definition at line 164 of file Traits.h.

Enumeration Type Documentation

Enumerator
DataTypeHalf 
DataTypeUnsignedChar 
DataTypeInt 
DataTypeFloat 
DataTypeDouble 
DataTypeVecHalf 
DataTypeVecFloat 
DataTypeVecDouble 
DataTypeUnknown 

Definition at line 66 of file Traits.h.