Go to the documentation of this file.
18 #ifndef viskores_CellTraits_h
19 #define viskores_CellTraits_h
30 template <viskores::IdComponent dimension>
53 template <
class CellTag>
55 #ifdef VISKORES_DOXYGEN_ONLY
84 #else // VISKORES_DOXYGEN_ONLY
86 #endif // VISKORES_DOXYGEN_ONLY
92 #define VISKORES_DEFINE_CELL_TRAITS(name, dimensions, numPoints) \
94 struct CellTraits<viskores::CellShapeTag##name> \
96 static constexpr viskores::IdComponent TOPOLOGICAL_DIMENSIONS = dimensions; \
97 using TopologicalDimensionsTag = \
98 viskores::CellTopologicalDimensionsTag<TOPOLOGICAL_DIMENSIONS>; \
99 using IsSizeFixed = viskores::CellTraitsTagSizeFixed; \
100 static constexpr viskores::IdComponent NUM_POINTS = numPoints; \
103 #define VISKORES_DEFINE_CELL_TRAITS_VARIABLE(name, dimensions) \
105 struct CellTraits<viskores::CellShapeTag##name> \
107 static constexpr viskores::IdComponent TOPOLOGICAL_DIMENSIONS = dimensions; \
108 using TopologicalDimensionsTag = \
109 viskores::CellTopologicalDimensionsTag<TOPOLOGICAL_DIMENSIONS>; \
110 using IsSizeFixed = viskores::CellTraitsTagSizeVariable; \
129 #undef VISKORES_DEFINE_CELL_TRAITS
133 #endif //viskores_CellTraits_h
viskores::Int32 IdComponent
Base type to use to index small lists.
Definition: Types.h:202
#define VISKORES_DEFINE_CELL_TRAITS_VARIABLE(name, dimensions)
Definition: CellTraits.h:103
Groups connected points that have the same field value.
Definition: Atomic.h:27
Information about a cell based on its tag.
Definition: CellTraits.h:54
Represent an infinite or semi-infinite line segment with a point and a direction.
Definition: Geometry.h:29
static constexpr viskores::IdComponent NUM_POINTS
Number of points in the cell.
Definition: CellTraits.h:82
static const viskores::IdComponent TOPOLOGICAL_DIMENSIONS
This defines the topological dimensions of the cell type.
Definition: CellTraits.h:60
viskores::CellTraits::TopologyDimensionType is typedef to this with the template parameter set to TOP...
Definition: CellTraits.h:31
#define VISKORES_DEFINE_CELL_TRAITS(name, dimensions, numPoints)
Definition: CellTraits.h:92