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

Go to the source code of this file.

Classes

struct  viskores::CellTopologicalDimensionsTag< dimension >
 viskores::CellTraits::TopologyDimensionType is typedef to this with the template parameter set to TOPOLOGICAL_DIMENSIONS. More...
 
struct  viskores::CellTraitsTagSizeFixed
 Tag for cell shapes with a fixed number of points. More...
 
struct  viskores::CellTraitsTagSizeVariable
 Tag for cell shapes that can have a variable number of points. More...
 
struct  viskores::CellTraits< CellTag >
 Information about a cell based on its tag. More...
 
struct  viskores::CellTraits< viskores::CellShapeTagEmpty >
 
struct  viskores::CellTraits< viskores::CellShapeTagVertex >
 
struct  viskores::CellTraits< viskores::CellShapeTagLine >
 
struct  viskores::CellTraits< viskores::CellShapeTagPolyLine >
 
struct  viskores::CellTraits< viskores::CellShapeTagTriangle >
 
struct  viskores::CellTraits< viskores::CellShapeTagPolygon >
 
struct  viskores::CellTraits< viskores::CellShapeTagQuad >
 
struct  viskores::CellTraits< viskores::CellShapeTagTetra >
 
struct  viskores::CellTraits< viskores::CellShapeTagHexahedron >
 
struct  viskores::CellTraits< viskores::CellShapeTagWedge >
 
struct  viskores::CellTraits< viskores::CellShapeTagPyramid >
 

Namespaces

 viskores
 Groups connected points that have the same field value.
 

Macros

#define VISKORES_DEFINE_CELL_TRAITS(name, dimensions, numPoints)
 
#define VISKORES_DEFINE_CELL_TRAITS_VARIABLE(name, dimensions)
 

Macro Definition Documentation

◆ VISKORES_DEFINE_CELL_TRAITS

#define VISKORES_DEFINE_CELL_TRAITS (   name,
  dimensions,
  numPoints 
)
Value:
template <> \
struct CellTraits<viskores::CellShapeTag##name> \
{ \
static constexpr viskores::IdComponent TOPOLOGICAL_DIMENSIONS = dimensions; \
using TopologicalDimensionsTag = \
viskores::CellTopologicalDimensionsTag<TOPOLOGICAL_DIMENSIONS>; \
using IsSizeFixed = viskores::CellTraitsTagSizeFixed; \
static constexpr viskores::IdComponent NUM_POINTS = numPoints; \
}

◆ VISKORES_DEFINE_CELL_TRAITS_VARIABLE

#define VISKORES_DEFINE_CELL_TRAITS_VARIABLE (   name,
  dimensions 
)
Value:
template <> \
struct CellTraits<viskores::CellShapeTag##name> \
{ \
static constexpr viskores::IdComponent TOPOLOGICAL_DIMENSIONS = dimensions; \
using TopologicalDimensionsTag = \
viskores::CellTopologicalDimensionsTag<TOPOLOGICAL_DIMENSIONS>; \
using IsSizeFixed = viskores::CellTraitsTagSizeVariable; \
}
viskores::IdComponent
viskores::Int32 IdComponent
Base type to use to index small lists.
Definition: Types.h:202
viskores::CellTraitsTagSizeFixed
Tag for cell shapes with a fixed number of points.
Definition: CellTraits.h:37
viskores::CellTraitsTagSizeVariable
Tag for cell shapes that can have a variable number of points.
Definition: CellTraits.h:43