18 #include "vtkCommonCoreModule.h"
21 VTK_ABI_NAMESPACE_BEGIN
44 int Allocate(
vtkIdType sz,
int strategy = 0);
61 for (
int i = 0; i < this->NumberOfIds; i++)
62 if (this->Ids[i] ==
id)
134 void Reset() { this->NumberOfIds = 0; }
139 void Squeeze() { this->Resize(this->NumberOfIds); }
199 void InitializeMemory();
208 void operator=(
const vtkIdList&) =
delete;
218 this->
Ids[i] = vtkid;
252 VTK_ABI_NAMESPACE_END
void SetId(vtkIdType i, vtkIdType vtkid)
Set the id at location i.
abstract base class for most VTK objects
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void Squeeze()
Free any unused memory.
void Reset()
Reset to an empty state but retain previously allocated memory.
vtkIdType * Resize(vtkIdType sz)
Adjust the size of the id list while maintaining its content (except when being truncated).
void Sort(RandomIt bitr, RandomIt eitr, BackToFront< T > &me)
vtkIdType InsertNextId(vtkIdType vtkid)
Add the id specified to the end of the list.
vtkIdType GetId(vtkIdType i)
Return the id at location i.
a simple class to control print indentation
list of point or cell ids
const vtkIdType * end() const
To support range-based for loops.
void save(Archiver &ar, const std::string &str, const unsigned int vtkNotUsed(version))
vtkIdType GetNumberOfIds() const noexcept
Return the number of id's in the list.
vtkIdType IsId(vtkIdType vtkid)
Return -1 if id specified is not contained in the list; otherwise return the position in the list...
const vtkIdType * begin() const
To support range-based for loops.
vtkIdType * end()
To support range-based for loops.
vtkIdType FindIdLocation(const vtkIdType id)
Find the location i of the provided id.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
void InsertId(vtkIdType i, vtkIdType vtkid)
Set the id at location i.
vtkIdType * begin()
To support range-based for loops.
vtkIdType * GetPointer(vtkIdType i)
Get a pointer to a particular data index.