20#ifndef vtkTestDataArray_h
21#define vtkTestDataArray_h
23#include "vtkCommonCoreModule.h"
27VTK_ABI_NAMESPACE_BEGIN
28template <
class ArrayT>
54 this->Array->SetTypedTuple(tupleIdx, tuple);
58 this->Array->SetTypedTuple(tupleIdx, tuple);
63 return this->Array->GetTypedComponent(tupleIdx, compIdx);
67 this->Array->SetTypedComponent(tupleIdx, compIdx, value);
72 return this->Array->GetVoidPointer(valueIdx);
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Base interface for all typed vtkDataArray subclasses.
a simple class to control print indentation
An implementation of vtkGenericDataArray for testing fallback algorithms.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void * GetVoidPointer(vtkIdType valueIdx) override
Default implementation raises a runtime error.
void GetTypedTuple(vtkIdType tupleIdx, ValueType *tuple) const
ValueType GetTypedComponent(vtkIdType tupleIdx, int compIdx) const
~vtkTestDataArray() override
vtkGenericDataArray< vtkTestDataArray< ArrayT >, ValueType > GenericDataArrayType
bool ReallocateTuples(vtkIdType numTuples)
vtkAbstractTemplateTypeMacro(SelfType, GenericDataArrayType)
void SetTypedComponent(vtkIdType tupleIdx, int compIdx, ValueType value)
vtkTestDataArray< ArrayT > SelfType
bool AllocateTuples(vtkIdType numTuples)
ValueType GetValue(vtkIdType valueIdx) const
static vtkTestDataArray< ArrayType > * New()
vtkAOSArrayNewInstanceMacro(SelfType)
ArrayType::ValueType ValueType
void SetTypedTuple(vtkIdType tupleIdx, const ValueType *tuple)
void SetValue(vtkIdType valueIdx, ValueType value)
#define VTK_STANDARD_NEW_BODY(thisClass)