#include <VecTraits.h>
◆ BaseComponentType
template<typename T , vtkm::IdComponent Size>
Base component type in the vector.
Similar to ComponentType except that for nested vectors (e.g. Vec<Vec<T, M>, N>), it returns the base scalar type at the end of the composition (T in this example).
◆ ComponentType
template<typename T , vtkm::IdComponent Size>
Type of the components in the vector.
If the type is really a scalar, then the component type is the same as the scalar type.
◆ HasMultipleComponents
template<typename T , vtkm::IdComponent Size>
A tag specifying whether this vector has multiple components (i.e.
is a "real" vector). This tag can be useful for creating specialized functions when a vector is really just a scalar.
◆ IsSizeStatic
template<typename T , vtkm::IdComponent Size>
A tag specifying whether the size of this vector is known at compile time.
If set to VecTraitsTagSizeStatic
, then NUM_COMPONENTS
is set. If set to VecTraitsTagSizeVariable
, then the number of components is not known at compile time and must be queried with GetNumberOfComponents
.
◆ ReplaceBaseComponentType
template<typename T , vtkm::IdComponent Size>
template<typename NewComponentType >
Get a vector of the same type but with a different base component.
This type resolves to another vector with a different base component type. The replacement is recursive for nested types. For example,
VecTraits<Vec<Vec<T, M>, N>::ReplaceComponentType<T2>
is Vec<Vec<T2, M>, N>.
◆ ReplaceComponentType
template<typename T , vtkm::IdComponent Size>
template<typename NewComponentType >
Get a vector of the same type but with a different component.
This type resolves to another vector with a different component type. For example,
is vtkm::Vec<T2, N>. This replacement is not recursive. So
VecTraits<Vec<Vec<T, M>, N>::ReplaceComponentType<T2>
is vtkm::Vec<T2, N>.
◆ VecType
template<typename T , vtkm::IdComponent Size>
◆ CopyInto()
template<typename T , vtkm::IdComponent Size>
template<vtkm::IdComponent destSize>
Converts whatever type this vector is into the standard VTKm Tuple.
◆ GetComponent() [1/2]
template<typename T , vtkm::IdComponent Size>
Returns the value in a given component of the vector.
◆ GetComponent() [2/2]
template<typename T , vtkm::IdComponent Size>
◆ GetNumberOfComponents()
template<typename T , vtkm::IdComponent Size>
Number of components in the given vector.
◆ SetComponent()
template<typename T , vtkm::IdComponent Size>
Changes the value in a given component of the vector.
◆ NUM_COMPONENTS
template<typename T , vtkm::IdComponent Size>
Number of components in the vector.
The documentation for this struct was generated from the following file: