 |
VTK
9.0.1
|
Go to the documentation of this file.
27 #include "vtkCommonCoreModule.h"
52 int Allocate(
const vtkIdType sz,
const int strategy = 0);
72 for (
int i = 0; i < this->NumberOfIds; i++)
73 if (this->Ids[i] ==
id)
82 void SetNumberOfIds(
const vtkIdType number);
139 void Reset() { this->NumberOfIds = 0; }
144 void Squeeze() { this->Resize(this->NumberOfIds); }
198 void operator=(
const vtkIdList&) =
delete;
208 this->
Ids[i] = vtkid;
void InsertId(const vtkIdType i, const vtkIdType vtkid)
Set the id at location i.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
const vtkIdType * begin() const
abstract base class for most VTK objects
void Squeeze()
Free any unused memory.
vtkIdType FindIdLocation(const vtkIdType id)
Find the location i of the provided id.
vtkIdType * Resize(const vtkIdType sz)
Adjust the size of the id list while maintaining its content (except when being truncated).
void SetId(const vtkIdType i, const vtkIdType vtkid)
Set the id at location i.
vtkIdType InsertNextId(const vtkIdType vtkid)
Add the id specified to the end of the list.
a simple class to control print indentation
const vtkIdType * end() const
vtkIdType GetId(const vtkIdType i)
Return the id at location i.
list of point or cell ids
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIdType * begin()
To support range-based for loops.
vtkIdType * GetPointer(const vtkIdType i)
Get a pointer to a particular data index.
void IntersectWith(vtkIdList &otherIds)
Intersect one id list with another.
vtkIdType IsId(vtkIdType vtkid)
Return -1 if id specified is not contained in the list; otherwise return the position in the list.
vtkIdType GetNumberOfIds()
Return the number of id's in the list.
void Reset()
Reset to an empty state but retain previously allocated memory.