31 #ifndef vtkVariantArray_h 32 #define vtkVariantArray_h 34 #include "vtkCommonCoreModule.h" 38 class vtkVariantArrayLookup;
41 namespace boost {
namespace serialization {
class access; } }
47 friend class boost::serialization::access;
67 void Initialize() VTK_OVERRIDE;
73 int GetDataType() VTK_OVERRIDE;
80 int GetDataTypeSize() VTK_OVERRIDE;
89 int GetElementComponentSize() VTK_OVERRIDE;
95 void SetNumberOfTuples(
vtkIdType number) VTK_OVERRIDE;
140 void *GetVoidPointer(
vtkIdType id) VTK_OVERRIDE;
176 void Squeeze() VTK_OVERRIDE;
182 int Resize(
vtkIdType numTuples) VTK_OVERRIDE;
195 int deleteM) VTK_OVERRIDE;
206 unsigned long GetActualMemorySize() VTK_OVERRIDE;
211 int IsNumeric() VTK_OVERRIDE;
272 void SetNumberOfValues(
vtkIdType number) VTK_OVERRIDE;
277 vtkIdType GetNumberOfValues() {
return this->MaxId + 1; }
302 virtual
void DataElementChanged(
vtkIdType id);
309 void ClearLookup() VTK_OVERRIDE;
334 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.
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.