35 #ifndef vtkStringArray_h
36 #define vtkStringArray_h
42 class vtkStringArrayLookup;
75 void Squeeze() { this->ResizeAndExtend (this->MaxId+1); }
166 { this->SetNumberOfValues(this->NumberOfComponents* number); }
172 void SetNumberOfValues(
vtkIdType number);
184 void InsertValue(
vtkIdType id,
const char *val);
197 vtkIdType InsertNextValue(
const char *f);
236 { this->SetArray(static_cast<vtkStdString*>(array), size, save); }
281 virtual void DataElementChanged(
vtkIdType id);
302 vtkStringArrayLookup* Lookup;
void PrintSelf(ostream &os, vtkIndent indent)
vtkIdType GetNumberOfValues()
Wrapper around std::string to keep symbols short.
virtual void DataChanged()=0
vtkStdString * GetPointer(vtkIdType id)
virtual void DeepCopy(vtkAbstractArray *da)
Abstract superclass for all arrays.
virtual vtkIdType LookupValue(vtkVariant value)=0
virtual int GetDataTypeSize()=0
#define VTKCOMMONCORE_EXPORT
virtual void SetTuple(vtkIdType i, vtkIdType j, vtkAbstractArray *source)=0
a vtkAbstractArray subclass for strings
virtual void SetVoidArray(void *array, vtkIdType size, int save)
virtual void Initialize()=0
A atomic type representing the union of many types.
void SetValue(vtkIdType id, vtkStdString value)
virtual vtkIdType GetDataSize()
virtual int Allocate(vtkIdType sz, vtkIdType ext=1000)=0
virtual void ClearLookup()=0
a simple class to control print indentation
list of point or cell ids
virtual void InsertTuple(vtkIdType i, vtkIdType j, vtkAbstractArray *source)=0
virtual int Resize(vtkIdType numTuples)=0
virtual vtkArrayIterator * NewIterator()=0
virtual void GetTuples(vtkIdList *ptIds, vtkAbstractArray *output)
Abstract superclass to iterate over elements in an vtkAbstractArray.
void save(Archiver &ar, const vtkUnicodeString &str, const unsigned int vtkNotUsed(version))
virtual void InterpolateTuple(vtkIdType i, vtkIdList *ptIndices, vtkAbstractArray *source, double *weights)=0
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
virtual void SetNumberOfTuples(vtkIdType number)
virtual vtkIdType InsertNextTuple(vtkIdType j, vtkAbstractArray *source)=0
StdString::value_type value_type
void * GetVoidPointer(vtkIdType id)
virtual unsigned long GetActualMemorySize()=0
virtual void SetVariantValue(vtkIdType idx, vtkVariant value)=0
virtual void InsertTuples(vtkIdList *dstIds, vtkIdList *srcIds, vtkAbstractArray *source)=0
int GetElementComponentSize()
int GetNumberOfElementComponents()