#include <vtkObjectBaseList.h>
Inheritance diagram for vtkObjectBaseList:
A list is a doubly linked list. That is, it is a Sequence that supports both forward and backward traversal, and (amortized) constant time insertion and removal of items at the beginning or the end, or in the middle. Lists have the important property that insertion and splicing do not invalidate iterators to list items, and that even removal invalidates only the iterators that point to the items that are removed. The ordering of iterators may be changed (that is, a given iterator might have a different predecessor or successor after a list operation than it did before), but the iterators themselves will not be invalidated or made to point to different items unless that invalidation or mutation is explicit.
Definition at line 45 of file vtkObjectBaseList.h.
Public Member Functions | |
vtkTypeRevisionMacro (vtkObjectBaseList, 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 (vtkObjectBaseList *container) |
Swaps items of this container with those of the specified container. | |
virtual int | Copy (vtkObjectBaseList *container) |
Copy all items from the specified container into this container. | |
vtkObjectBaseListIterator * | CreateIterator (void) |
Create an iterator. | |
List Operations | |
virtual int | Insert (vtkIdType position, vtkObjectBase *item) |
Inserts an item into this sequence at the specified position. | |
virtual int | Insert (vtkIdType position, vtkObjectBaseList *sequence) |
Inserts copies of all items in the source sequence into this sequence at the specified position. | |
virtual int | Insert (vtkIdType position, vtkObjectBaseList *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 | PushFront (vtkObjectBase *item) |
Add an item to the front of this sequence. | |
int | PopFront (void) |
Removes the first item of this sequence. | |
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 .. | |
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. | |
virtual int | Splice (vtkIdType dstPos, vtkObjectBaseList *src) |
Moves all items of the source list src into this list and inserts them at position dstPos. | |
virtual int | Splice (vtkIdType dstPos, vtkObjectBaseList *src, vtkIdType srcPos) |
Moves the item at position srcPos of the source list src into this list and inserts it at position dstPos. | |
virtual int | Splice (vtkIdType dstPos, vtkObjectBaseList *src, vtkIdType srcBeg, vtkIdType srcEnd) |
Moves the items of the range [srcBeg, srcEnd] of the source list src into this list and inserts them at position dstPos. | |
virtual int | Merge (vtkObjectBaseList *src) |
The items of list src are merged with this list. | |
Atypical Operations | |
virtual vtkObjectBase * | At (vtkIdType position) const |
Provides access by index to the objects contained in this 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 | 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 | |
vtkObjectBaseList * | New (void) |
Protected Member Functions | |
vtkObjectBaseList (void) | |
~vtkObjectBaseList () | |
void | ReportReferences (vtkGarbageCollector *) |
Friends | |
class | vtkObjectBaseListIterator |
|
|
|
|
|
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 vtkObjectList. |
|
Returns the last item in the container, or
Reimplemented from vtkContainer. Reimplemented in vtkObjectList. |
|
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 vtkObjectList. |
|
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 vtkObjectList. |
|
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. |
|
The items of list src are merged with this list.
Both lists are sorted on entry to the internal
|
|
Reimplemented from vtkObject. Reimplemented in vtkObjectList. |
|
Removes the last item of the sequence.
Implements vtkSequenceContainer. |
|
Removes the first item of this sequence.
Implements vtkSequenceContainer. |
|
Reimplemented from vtkSequenceContainer. Reimplemented in vtkObjectList. |
|
Add an item to the end of this sequence.
Implements vtkSequenceContainer. |
|
Add an item to the front of this sequence.
Implements vtkSequenceContainer. |
|
|
|
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. |
|
Moves the items of the range [srcBeg, srcEnd] of the source list src into this list and inserts them at position dstPos.
|
|
Moves the item at position srcPos of the source list src into this list and inserts it at position dstPos.
|
|
Moves all items of the source list src into this list and inserts them at position dstPos.
|
|
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 333 of file vtkObjectBaseList.h. |