VTK-m
2.2
|
A short variable-length array with maximum length. More...
#include <VecVariable.h>
Public Types | |
using | ComponentType = T |
Public Member Functions | |
VecVariable () | |
template<typename SrcVecType > | |
VecVariable (const SrcVecType &src) | |
vtkm::IdComponent | GetNumberOfComponents () const |
template<vtkm::IdComponent DestSize> | |
void | CopyInto (vtkm::Vec< ComponentType, DestSize > &dest) const |
const ComponentType & | operator[] (vtkm::IdComponent index) const |
ComponentType & | operator[] (vtkm::IdComponent index) |
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 |