129#include "vtkCommonCoreModule.h"
133VTK_ABI_NAMESPACE_BEGIN
189 return this->
Buffer->GetBuffer()[i];
199 if (this->
Buffer->GetBuffer()[i] ==
id)
221 this->
Buffer->GetBuffer()[i] = id;
380 void operator=(const
vtkIdList&) = delete;
390 this->Buffer->GetBuffer()[i] =
id;
391 if (i >= this->NumberOfIds)
393 this->NumberOfIds = i + 1;
415 if (this->
Buffer->GetBuffer()[i] ==
id)
@ VTK_DATA_ARRAY_USER_DEFINED
@ VTK_DATA_ARRAY_ALIGNED_FREE
internal storage class used by vtkSOADataArrayTemplate, vtkAOSDataArrayTemplate, and others.
vtkIdType FindIdLocation(const vtkIdType id)
Find the location i of the provided id.
vtkIdType InsertUniqueId(vtkIdType id)
If id is not already in list, insert it and return location in list.
vtkIdType InsertNextId(vtkIdType id)
Add the id specified to the end of the list.
void SetNumberOfIds(vtkIdType number)
Specify the number of ids for this object to hold.
void IntersectWith(vtkIdList *otherIds)
Intersect this list with another vtkIdList.
void Fill(vtkIdType value)
Fill the ids with the input value.
vtkIdType * WritePointer(vtkIdType i, vtkIdType number)
Get a pointer to a particular data index.
vtkIdType * Resize(vtkIdType sz)
Adjust the size of the id list while maintaining its content (except when being truncated).
void SetArray(vtkIdType *array, vtkIdType size, bool manageMemory=true)
This method does the same as SetList but the save and manageMemory are opposite.
void Squeeze()
Free any unused memory.
vtkIdType * end()
To support range-based for loops.
void InitializeMemory()
Release memory.
void SetList(vtkIdType *array, vtkIdType size, bool save, int deleteMethod=VTK_DATA_ARRAY_DELETE)
This method let's the user specify data to be held by the id list.
void DeleteId(vtkIdType id)
Delete specified id from list.
vtkIdType IsId(vtkIdType id) VTK_FUTURE_CONST
Return -1 if id specified is not contained in the list; otherwise return the position in the list.
vtkIdType GetNumberOfIds() const noexcept
Return the number of id's in the list.
void Initialize()
Release memory and restore to unallocated state.
bool AllocateInternal(vtkIdType sz, vtkIdType numberOfIds)
Allocate ids and set the number of ids.
void Reset()
Reset to an empty state but retain previously allocated memory.
vtkBuffer< vtkIdType > * Buffer
void InsertId(vtkIdType i, vtkIdType id)
Set the id at location i.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, type information, and printing.
vtkTypeBool Allocate(vtkIdType size, int strategy=0)
Allocate memory for this id list.
vtkIdType GetId(vtkIdType i)
Return the id at location i.
void Sort()
Sort the ids in the list in ascending id order.
vtkIdType * begin()
To support range-based for loops.
vtkIdType * Release()
This releases the ownership of the internal vtkIdType array and returns the pointer to it.
void ShallowCopy(vtkIdList *list)
Copy an id list by copying the internal buffer pointer.
vtkIdType GetCapacity() const
Get the capacity of the id list.
const vtkIdType * end() const
To support range-based for loops.
void DeepCopy(vtkIdList *ids)
Copy an id list by explicitly copying the internal array.
void SetId(vtkIdType i, vtkIdType id)
Set the id at location i.
vtkIdType * GetPointer(vtkIdType i)
Get a pointer to a particular data index.
static vtkIdList * New()
Standard methods for instantiation, type information, and printing.
vtkTypeBool Reserve(vtkIdType size)
Reserve the id list to the requested number of ids and preserve data.
const vtkIdType * begin() const
To support range-based for loops.
@ VTK_DATA_ARRAY_ALIGNED_FREE
@ VTK_DATA_ARRAY_USER_DEFINED
a simple class to control print indentation
#define VTK_DEPRECATED_IN_9_7_0(reason)
void save(Archiver &ar, const std::string &str, const unsigned int version)