VTK-m
2.0
|
A short variable-length array with maximum length. More...
#include <VecVariable.h>
Public Types | |
using | ComponentType = T |
Public Member Functions | |
VTKM_EXEC_CONT | VecVariable () |
template<typename SrcVecType > | |
VTKM_EXEC_CONT | VecVariable (const SrcVecType &src) |
VTKM_EXEC_CONT vtkm::IdComponent | GetNumberOfComponents () const |
template<vtkm::IdComponent DestSize> | |
VTKM_EXEC_CONT void | CopyInto (vtkm::Vec< ComponentType, DestSize > &dest) const |
const VTKM_EXEC_CONT ComponentType & | operator[] (vtkm::IdComponent index) const |
VTKM_EXEC_CONT ComponentType & | operator[] (vtkm::IdComponent index) |
VTKM_EXEC_CONT void | Append (ComponentType value) |
Private Attributes | |
vtkm::Vec< T, MaxSize > | Data |
vtkm::IdComponent | NumComponents |
A short variable-length array with maximum length.
The VecVariable
class is a Vec-like class that holds a short array of some maximum length. To avoid dynamic allocations, the maximum length is specified at compile time. Internally, VecVariable
holds a Vec
of the maximum length and exposes a subsection of it.
using vtkm::VecVariable< T, MaxSize >::ComponentType = T |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |