#include <vtkObjectBaseVector.h>
Inheritance diagram for vtkObjectBaseVector:
Calls Register
when objects are added to the vector and UnRegister
when objects are removed.
Definition at line 36 of file vtkObjectBaseVector.h.
Public Member Functions | |
vtkTypeRevisionMacro (vtkObjectBaseVector, vtkAbstractSequence) | |
void | PrintSelf (ostream &, vtkIndent) |
vtkIdType | GetSize (void) const |
Returns the number of elements in the vector. | |
int | IsEmpty (void) const |
Returns true if the vector is empty. | |
vtkIdType | GetMaxSize (void) const |
Returns the maximum size of the vector. | |
void | Clear (void) |
Removes all elements from the vector. | |
virtual int | Swap (vtkObjectBaseVector *container) |
Swaps elements of this object with those of the specified container. | |
vtkIdType | GetCapacity (void) const |
Returns the total number of elements that the vector can hold before needing to allocate more memory. | |
int | SetCapacity (vtkIdType capacity) |
Set the capacity of the vector. | |
vtkObjectBase * | At (vtkIdType position) const |
Provides access to the data contained in this sequence. | |
vtkIdType | Find (const vtkObjectBase *object) const |
Find an object in the vector. | |
vtkIdType | Find (const vtkObjectBase *object, CompareFunction comparison) const |
Find an object in the vector using a comparison routine. | |
int | Insert (vtkIdType position, vtkObjectBase *object) |
Insert an object at the specific position in this vector. | |
int | PushBack (vtkObjectBase *object) |
Add a pointer to an object to the end of this vector. | |
int | Assign (vtkIdType position, vtkObjectBase *object) |
Sets the object at the specific position to a new value. | |
int | Erase (vtkIdType position) |
Remove element at the given position. | |
vtkObjectBaseVectorIterator * | CreateIterator (void) |
Create an iterator. | |
int | GetResize (void) const |
Allow or disallow resizing (defaults to true ). | |
void | SetResize (int a) |
Allow or disallow resizing (defaults to true ). | |
virtual void | ResizeOn () |
Allow or disallow resizing (defaults to true ). | |
virtual void | ResizeOff () |
Allow or disallow resizing (defaults to true ). | |
Data Access Methods | |
vtkObjectBase * | Front (void) const |
Get a read/write pointer to the first object in the sequence. | |
vtkObjectBase * | Back (void) const |
Get a read/write pointer to the last object in the sequence. | |
Static Public Member Functions | |
vtkObjectBaseVector * | New (void) |
Protected Member Functions | |
vtkObjectBaseVector (void) | |
~vtkObjectBaseVector () |
|
|
|
|
|
Sets the object at the specific position to a new value.
Implements vtkAbstractSequence. |
|
Provides access to the data contained in this sequence.
Reimplemented from vtkAbstractSequence. Reimplemented in vtkExtensionsObjectVector, and vtkObjectVector. |
|
Get a read/write pointer to the last object in the sequence.
Reimplemented from vtkContainer. Reimplemented in vtkExtensionsObjectVector, and vtkObjectVector. |
|
Removes all elements from the vector.
Implements vtkContainer. |
|
Create an iterator.
Implements vtkAbstractSequence. Reimplemented in vtkExtensionsObjectVector, and vtkObjectVector. |
|
Remove element at the given position.
Implements vtkAbstractSequence. |
|
Find an object in the vector using a comparison routine.
Reimplemented from vtkAbstractSequence. |
|
Find an object in the vector.
Reimplemented from vtkAbstractSequence. |
|
Get a read/write pointer to the first object in the sequence.
Reimplemented from vtkContainer. Reimplemented in vtkExtensionsObjectVector, and vtkObjectVector. |
|
Returns the total number of elements that the vector can hold before needing to allocate more memory.
Reimplemented from vtkAbstractSequence. |
|
Returns the maximum size of the vector.
Reimplemented from vtkContainer. |
|
Allow or disallow resizing (defaults to
|
|
Returns the number of elements in the vector.
Reimplemented from vtkContainer. |
|
Insert an object at the specific position in this vector. Any objects in the vector at a location greater than position will be shifted by one position to make room for the inserted object.
Implements vtkAbstractSequence. |
|
Returns
Reimplemented from vtkContainer. |
|
Reimplemented from vtkExtensionsObject. Reimplemented in vtkExtensionsObjectVector, and vtkObjectVector. |
|
Reimplemented from vtkAbstractSequence. |
|
Add a pointer to an object to the end of this vector.
Implements vtkAbstractSequence. |
|
Allow or disallow resizing (defaults to
|
|
Allow or disallow resizing (defaults to
|
|
Set the capacity of the vector.
Implements vtkAbstractSequence. |
|
Allow or disallow resizing (defaults to
|
|
Swaps elements of this object with those of the specified container.
|
|
|