#include <vtkObjectBaseVector.h>
Inheritance diagram for vtkObjectBaseVector:
A vector is a Sequence that supports random access to items, constant time insertion and removal of items at the end, and linear time insertion and removal of items at the beginning or in the middle. The number of items in a vector may vary dynamically; memory management is automatic. Vector is the simplest of the container classes, and in many cases the most efficient.
Definition at line 40 of file vtkObjectBaseVector.h.
Public Member Functions | |
vtkTypeRevisionMacro (vtkObjectBaseVector, vtkSequenceContainer) | |
void | PrintSelf (ostream &, vtkIndent) |
virtual vtkIdType | GetSize (void) const |
Returns the number of items in the container. | |
virtual int | IsEmpty (void) const |
Returns true if this container is empty. | |
virtual vtkIdType | GetMaxSize (void) const |
Returns the maximum size of this container. | |
virtual int | Clear (void) |
Erase ALL items in the container. | |
virtual int | Swap (vtkObjectBaseVector *container) |
Swaps items of this container with those of the specified container. | |
virtual int | Copy (vtkObjectBaseVector *container) |
Copy all items from the specified container into this container. | |
vtkObjectBaseVectorIterator * | CreateIterator (void) |
Create an iterator. | |
Vector Operations | |
virtual vtkObjectBase * | At (vtkIdType position) const |
Provides access by index to the objects contained in this sequence. | |
virtual int | Insert (vtkIdType position, vtkObjectBase *item) |
Inserts an item into this sequence at the specified position. | |
virtual int | Insert (vtkIdType position, vtkObjectBaseVector *sequence) |
Inserts copies of all items in the source sequence into this sequence at the specified position. | |
virtual int | Insert (vtkIdType position, vtkObjectBaseVector *sequence, vtkIdType seqBeg, vtkIdType seqEnd) |
Inserts copies of the range [srcBeg .. | |
virtual int | Assign (vtkIdType position, vtkObjectBase *item) |
Assigns item to the specified position replacing the existant item. | |
virtual int | PushBack (vtkObjectBase *item) |
Add an item to the end of this sequence. | |
int | PopBack (void) |
Removes the last item of the sequence. | |
int | Erase (vtkIdType position) |
Remove the item at the given position. | |
int | Erase (vtkIdType pos1, vtkIdType pos2) |
Remove the items in the given range [pos1 .. | |
void | Reserve (vtkIdType capacity) |
Enlarge the capacity of this vector. | |
Atypical operations | |
virtual int | PushFront (vtkObjectBase *item) |
Add an item to the front of this sequence. | |
int | PopFront (void) |
Removes the first item of the sequence. | |
int | Erase (vtkObjectBase *item) |
Remove the first occurence of the given item from the sequence. | |
int | Clear (vtkObjectBase *item) |
Remove all occurrences of the given item from the sequence. | |
vtkIdType | Find (vtkObjectBase *item) const |
Find the first occurence of an item in the sequence. | |
int | Reverse (void) |
Reverse the sequence ordering. | |
int | Reverse (vtkIdType pos1, vtkIdType pos2) |
Reverse the sequence ordering in the given range [pos1 .. | |
int | Sort (void) |
Sort the sequence items by address with operator < . | |
int | Unique (void) |
Removes subsequent duplicates of sequence items so that each item contains a different value than the following item. | |
int | Rotate (vtkIdType index) |
Rotates the items in this sequence so that index is the new first element after the call. | |
int | Shuffle (void) |
Shuffles the order of the items in this sequence using a uniform distribution random number generator. | |
Data Access Methods | |
vtkObjectBase * | Front (void) const |
Returns the first item in the container, or null if the container is empty. | |
vtkObjectBase * | Back (void) const |
Returns the last item in the container, or null if the container is empty. | |
Static Public Member Functions | |
vtkObjectBaseVector * | New (void) |
Protected Member Functions | |
vtkObjectBaseVector (void) | |
~vtkObjectBaseVector () | |
void | ReportReferences (vtkGarbageCollector *) |
Friends | |
class | vtkObjectBaseVectorIterator |
|
|
|
|
|
Assigns item to the specified position replacing the existant item.
Implements vtkSequenceContainer. |
|
Provides access by index to the objects contained in this sequence.
Reimplemented from vtkSequenceContainer. Reimplemented in vtkObjectVector. |
|
Returns the last item in the container, or
Reimplemented from vtkContainer. Reimplemented in vtkObjectVector. |
|
Remove all occurrences of the given item from the sequence.
Implements vtkSequenceContainer. |
|
Erase ALL items in the container.
Implements vtkContainer. |
|
Copy all items from the specified container into this container.
|
|
Create an iterator.
Implements vtkSequenceContainer. Reimplemented in vtkObjectVector. |
|
Remove the first occurence of the given item from the sequence.
Implements vtkSequenceContainer. |
|
Remove the items in the given range [pos1 .. pos2] of positions.
Implements vtkSequenceContainer. |
|
Remove the item at the given position.
Implements vtkSequenceContainer. |
|
Find the first occurence of an item in the sequence.
Reimplemented from vtkSequenceContainer. |
|
Returns the first item in the container, or
Reimplemented from vtkContainer. Reimplemented in vtkObjectVector. |
|
Returns the maximum size of this container.
Reimplemented from vtkContainer. |
|
Returns the number of items in the container.
Reimplemented from vtkContainer. |
|
Inserts copies of the range [srcBeg .. srcEnd] in the source sequence into this sequence at the specified position.
|
|
Inserts copies of all items in the source sequence into this sequence at the specified position.
|
|
Inserts an item into this sequence at the specified position.
Implements vtkSequenceContainer. |
|
Returns
Reimplemented from vtkContainer. |
|
Reimplemented from vtkObject. Reimplemented in vtkObjectVector. |
|
Removes the last item of the sequence.
Implements vtkSequenceContainer. |
|
Removes the first item of the sequence.
Implements vtkSequenceContainer. |
|
Reimplemented from vtkSequenceContainer. Reimplemented in vtkObjectVector. |
|
Add an item to the end of this sequence.
Implements vtkSequenceContainer. |
|
Add an item to the front of this sequence.
Implements vtkSequenceContainer. |
|
|
|
Enlarge the capacity of this vector.
|
|
Reverse the sequence ordering in the given range [pos1 .. pos2] of positions.
Implements vtkSequenceContainer. |
|
Reverse the sequence ordering.
Implements vtkSequenceContainer. |
|
Rotates the items in this sequence so that index is the new first element after the call.
Implements vtkSequenceContainer. |
|
Shuffles the order of the items in this sequence using a uniform distribution random number generator.
Implements vtkSequenceContainer. |
|
Sort the sequence items by address with operator
Implements vtkSequenceContainer. |
|
Swaps items of this container with those of the specified container.
|
|
Removes subsequent duplicates of sequence items so that each item contains a different value than the following item.
Implements vtkSequenceContainer. |
|
|
|
Definition at line 284 of file vtkObjectBaseVector.h. |