127#include "vtkCommonCoreModule.h"  
  131VTK_ABI_NAMESPACE_BEGIN
 
  171    for (
int i = 0; i < this->NumberOfIds; i++)
 
  172      if (this->Ids[i] == 
id)
 
  190    this->Ids[i] = vtkid;
 
  244  void Reset() { this->NumberOfIds = 0; }
 
  249  void Squeeze() { this->Resize(this->NumberOfIds); }
 
  318  void operator=(
const vtkIdList&) = 
delete;
 
  328  this->
Ids[i] = vtkid;
 
  352  for (ptr = this->Ids, i = 0; i < this->NumberOfIds; i++, ptr++)
 
list of point or cell ids
 
vtkIdType FindIdLocation(const vtkIdType id)
Find the location i of the provided id.
 
void DeleteId(vtkIdType vtkid)
Delete specified id from 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.
 
void SetArray(vtkIdType *array, vtkIdType size, bool save=true)
Specify an array of vtkIdType to use as the id list.
 
int Allocate(vtkIdType sz, int strategy=0)
Allocate a capacity for sz ids in the list and set the number of stored ids in the list to 0.
 
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 Squeeze()
Free any unused memory.
 
vtkIdType IsId(vtkIdType vtkid) VTK_FUTURE_CONST
Return -1 if id specified is not contained in the list; otherwise return the position in the list.
 
vtkIdType * end()
To support range-based for loops.
 
void InitializeMemory()
Release memory.
 
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.
 
vtkIdType InsertNextId(vtkIdType vtkid)
Add the id specified to the end of the list.
 
void Reset()
Reset to an empty state but retain previously allocated memory.
 
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, type information, and printing.
 
void SetId(vtkIdType i, vtkIdType vtkid)
Set the id at location i.
 
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 InsertId(vtkIdType i, vtkIdType vtkid)
Set the id at location i.
 
const vtkIdType * end() const
To support range-based for loops.
 
void DeepCopy(vtkIdList *ids)
Copy an id list by explicitly copying the internal array.
 
vtkIdType InsertUniqueId(vtkIdType vtkid)
If id is not already in list, insert it and return location in list.
 
vtkIdType * GetPointer(vtkIdType i)
Get a pointer to a particular data index.
 
static vtkIdList * New()
Standard methods for instantiation, type information, and printing.
 
const vtkIdType * begin() const
To support range-based for loops.
 
a simple class to control print indentation
 
abstract base class for most VTK objects
 
void save(Archiver &ar, const std::string &str, const unsigned int version)