34 #ifndef vtkVariantArray_h
35 #define vtkVariantArray_h
37 #include "vtkCommonCoreModule.h"
41 class vtkVariantArrayLookup;
44 namespace boost {
namespace serialization {
class access; } }
50 friend class boost::serialization::access;
70 void Initialize() VTK_OVERRIDE;
76 int GetDataType() VTK_OVERRIDE;
83 int GetDataTypeSize() VTK_OVERRIDE;
92 int GetElementComponentSize() VTK_OVERRIDE;
98 void SetNumberOfTuples(
vtkIdType number) VTK_OVERRIDE;
143 void *GetVoidPointer(
vtkIdType id) VTK_OVERRIDE;
179 void Squeeze() VTK_OVERRIDE;
185 int Resize(
vtkIdType numTuples) VTK_OVERRIDE;
198 int deleteM) VTK_OVERRIDE;
209 unsigned long GetActualMemorySize() VTK_OVERRIDE;
214 int IsNumeric() VTK_OVERRIDE;
275 void SetNumberOfValues(
vtkIdType number) VTK_OVERRIDE;
280 vtkIdType GetNumberOfValues() {
return this->MaxId + 1; }
305 virtual
void DataElementChanged(
vtkIdType id);
312 void ClearLookup() VTK_OVERRIDE;
334 vtkVariantArray(const vtkVariantArray&) VTK_DELETE_FUNCTION;
335 void operator=(const vtkVariantArray&) VTK_DELETE_FUNCTION;
337 vtkVariantArrayLookup* Lookup;
Forward declaration required for Boost serialization.
virtual void DataChanged()=0
Tell the array explicitly that the data has changed.
An array holding vtkVariants.
Abstract superclass for all arrays.
virtual vtkIdType LookupValue(vtkVariant value)=0
Return the value indices where a specific value appears.
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
A atomic type representing the union of many types.
a simple class to control print indentation
list of point or cell ids
Abstract superclass to iterate over elements in an vtkAbstractArray.
virtual int Allocate(vtkIdType numValues, vtkIdType ext=1000)=0
Allocate memory for this array.
void save(Archiver &ar, const vtkUnicodeString &str, const unsigned int vtkNotUsed(version))
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.