50 #ifndef vtkTypedArray_h
51 #define vtkTypedArray_h
85 virtual const T&
GetValue(CoordinateT i) = 0;
86 virtual const T&
GetValue(CoordinateT i, CoordinateT j) = 0;
87 virtual const T&
GetValue(CoordinateT i, CoordinateT j, CoordinateT k) = 0;
98 virtual const T&
GetValueN(const SizeT n) = 0;
107 virtual
void SetValue(CoordinateT i, CoordinateT j, const T& value) = 0;
108 virtual
void SetValue(CoordinateT i, CoordinateT j, CoordinateT k, const T& value) = 0;
119 virtual
void SetValueN(const SizeT n, const T& value) = 0;
130 #include "vtkTypedArray.txx"
vtkVariant GetVariantValueN(const SizeT n) override
Returns the n-th value stored in the array, where n is in the range [0, GetNonNullSize()).
Stores coordinate into an N-way array.
virtual void SetValue(CoordinateT i, const T &value)=0
Overwrites the value stored in the array at the given coordinates.
virtual const T & GetValue(CoordinateT i)=0
Returns the value stored in the array at the given coordinates.
Abstract interface for N-dimensional arrays.
vtkVariant GetVariantValue(const vtkArrayCoordinates &coordinates) override
Returns the value stored in the array at the given coordinates.
A atomic type representing the union of many types.
void SetVariantValueN(const SizeT n, const vtkVariant &value) override
Overwrites the n-th value stored in the array, where n is in the range [0, GetNonNullSize()).
~vtkTypedArray() override
a simple class to control print indentation
vtkArrayExtents::SizeT SizeT
void SetVariantValue(const vtkArrayCoordinates &coordinates, const vtkVariant &value) override
Overwrites the value stored in the array at the given coordinates.
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void CopyValue(vtkArray *source, const vtkArrayCoordinates &source_coordinates, const vtkArrayCoordinates &target_coordinates) override
Overwrites a value with a value retrieved from another array.
virtual const T & GetValueN(const SizeT n)=0
Returns the n-th value stored in the array, where n is in the range [0, GetNonNullSize()).
Provides a type-specific interface to N-way arrays.
virtual void SetValueN(const SizeT n, const T &value)=0
Overwrites the n-th value stored in the array, where n is in the range [0, GetNonNullSize()).
vtkArrayExtents::CoordinateT CoordinateT