#include <vtkAbstractSequence.h>
Inheritance diagram for vtkAbstractSequence:
Calls Register
when objects are inserted into the sequence and UnRegister
when the object is removed.
Definition at line 36 of file vtkAbstractSequence.h.
Public Types | |
typedef int(* | CompareFunction )(const vtkObjectBase *&a1, const vtkObjectBase *&a2) |
Public Member Functions | |
vtkTypeRevisionMacro (vtkAbstractSequence, vtkContainer) | |
void | PrintSelf (ostream &, vtkIndent) |
virtual int | Swap (vtkAbstractSequence *container)=0 |
Swaps elements of this object with those of the specified container. | |
virtual vtkIdType | GetCapacity (void) const |
Returns the total number of elements that the map can hold before needing to allocate more memory. | |
virtual int | SetCapacity (vtkIdType capacity)=0 |
Set the capacity of the sequence. | |
virtual vtkObjectBase * | At (vtkIdType position) const |
Provides access to the data contained in this sequence. | |
virtual vtkIdType | Find (const vtkObjectBase *object) const |
Find an object in the sequence. | |
virtual vtkIdType | Find (const vtkObjectBase *object, CompareFunction comparison) const |
Find an object in the sequence using a comparison routine. | |
virtual int | IsPresent (const vtkObjectBase *object) const |
Find an object in the vector. | |
virtual int | Insert (vtkIdType position, vtkObjectBase *object)=0 |
Inserts a pointer to an object into before the specified position. | |
virtual int | Insert (vtkIdType position, vtkAbstractSequence *sequence) |
Insert a sequence at the specific position in this sequence. | |
virtual int | PushFront (vtkObjectBase *object) |
Add a pointer to an object to the front of this sequence. | |
int | PopFront (void) |
Removes the first element of the sequence. | |
virtual int | PushBack (vtkObjectBase *object)=0 |
Add a pointer to an object to the end of this sequence. | |
int | PopBack (void) |
Removes the last element of the sequence. | |
virtual int | PushBack (vtkAbstractSequence *sequence) |
Append a sequence to the end of this sequence. | |
virtual int | Assign (vtkIdType position, vtkObjectBase *object)=0 |
Sets the object at the specific position to a new value. | |
virtual int | Erase (vtkIdType position)=0 |
Remove element at the given position. | |
void | DebugSequence (ostream &stream) |
Display the contents of the sequence. | |
virtual vtkAbstractSequenceIterator * | CreateIterator (void)=0 |
Create an iterator. | |
Protected Member Functions | |
vtkAbstractSequence (void) | |
~vtkAbstractSequence () |
|
Definition at line 44 of file vtkAbstractSequence.h. |
|
Definition at line 202 of file vtkAbstractSequence.h. |
|
Definition at line 203 of file vtkAbstractSequence.h. |
|
Sets the object at the specific position to a new value.
Implemented in vtkObjectBaseVector. |
|
Provides access to the data contained in this sequence.
Reimplemented in vtkExtensionsObjectVector, vtkObjectBaseVector, and vtkObjectVector. Definition at line 233 of file vtkAbstractSequence.h. References At(). Referenced by At(), Insert(), and PushBack(). |
|
Create an iterator.
Implements vtkContainer. Implemented in vtkExtensionsObjectVector, vtkObjectBaseVector, and vtkObjectVector. |
|
Display the contents of the sequence.
|
|
Remove element at the given position.
Implemented in vtkObjectBaseVector. Referenced by Insert(), PopBack(), and PopFront(). |
|
Find an object in the sequence using a comparison routine.
Reimplemented in vtkObjectBaseVector. Definition at line 245 of file vtkAbstractSequence.h. References Find(). |
|
Find an object in the sequence.
Reimplemented in vtkObjectBaseVector. Definition at line 239 of file vtkAbstractSequence.h. References Find(). Referenced by Find(), and IsPresent(). |
|
Returns the total number of elements that the map can hold before needing to allocate more memory.
Reimplemented in vtkObjectBaseVector. Definition at line 227 of file vtkAbstractSequence.h. |
|
Insert a sequence at the specific position in this sequence. Any objects in the vector at a location greater than position will be shifted by the size of the sequence to make room for the inserted elements.
Definition at line 258 of file vtkAbstractSequence.h. References At(), Erase(), vtkContainer::GetSize(), Insert(), VTK_FALSE, and VTK_TRUE. |
|
Inserts a pointer to an object into before the specified position. Any objects in the sequence at a location greater than position will be shifted by one position to make room for the inserted object.
Implemented in vtkObjectBaseVector. Referenced by Insert(), and PushFront(). |
|
Find an object in the vector.
Definition at line 252 of file vtkAbstractSequence.h. References Find(), IsPresent(), VTK_FALSE, and VTK_TRUE. Referenced by IsPresent(). |
|
Removes the last element of the sequence. This is a typical stack operation. It shrinks the sequence by one.
Definition at line 289 of file vtkAbstractSequence.h. References Erase(). Referenced by PushBack(). |
|
Removes the first element of the sequence. This is a typical stack operation. It shrinks the sequence by one.
Definition at line 283 of file vtkAbstractSequence.h. References Erase(). |
|
Reimplemented from vtkContainer. Reimplemented in vtkObjectBaseVector. |
|
Append a sequence to the end of this sequence.
Definition at line 295 of file vtkAbstractSequence.h. References At(), vtkContainer::GetSize(), PopBack(), PushBack(), VTK_FALSE, and VTK_TRUE. |
|
Add a pointer to an object to the end of this sequence.
Implemented in vtkObjectBaseVector. Referenced by PushBack(). |
|
Add a pointer to an object to the front of this sequence.
Definition at line 277 of file vtkAbstractSequence.h. References Insert(), and PushFront(). Referenced by PushFront(). |
|
Set the capacity of the sequence.
Implemented in vtkObjectBaseVector. |
|
Swaps elements of this object with those of the specified container.
|
|
|