#include <vtkObjectBaseDeque.h>
Inheritance diagram for vtkObjectBaseDeque:
A deque is very much like a vector: like vector, it is a sequence that supports random access to items, constant time insertion and removal of items at the end of the sequence, and linear time insertion and removal of items in the middle.
The main way in which deque differs from vector is that deque also supports constant time insertion and removal of items at the beginning of the sequence.
Definition at line 42 of file vtkObjectBaseDeque.h.
Public Member Functions | |
vtkTypeRevisionMacro (vtkObjectBaseDeque, 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 (vtkObjectBaseDeque *container) |
Swaps items of this container with those of the specified container. | |
virtual int | Copy (vtkObjectBaseDeque *container) |
Copy all items from the specified container into this container. | |
vtkObjectBaseDequeIterator * | CreateIterator (void) |
Create an iterator. | |
Deque 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, vtkObjectBaseDeque *sequence) |
Inserts copies of all items in the source sequence into this sequence at the specified position. | |
virtual int | Insert (vtkIdType position, vtkObjectBaseDeque *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 .. | |
Atypical Operations | |
int | Erase (vtkObjectBase *item) |
Remove the first occurence of the given item from the sequence. | |
int | Clear (vtkObjectBase *object) |
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 | |
vtkObjectBaseDeque * | New (void) |
Protected Member Functions | |
vtkObjectBaseDeque (void) | |
~vtkObjectBaseDeque () | |
void | ReportReferences (vtkGarbageCollector *) |
Friends | |
class | vtkObjectBaseDequeIterator |
|
|
|
|
|
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 vtkObjectDeque. |
|
Returns the last item in the container, or
Reimplemented from vtkContainer. Reimplemented in vtkObjectDeque. |
|
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 vtkObjectDeque. |
|
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 vtkObjectDeque. |
|
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 vtkObjectDeque. |
|
Removes the last item of the sequence.
Implements vtkSequenceContainer. |
|
Removes the first item of this sequence.
Implements vtkSequenceContainer. |
|
Reimplemented from vtkSequenceContainer. Reimplemented in vtkObjectDeque. |
|
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. |
|
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 272 of file vtkObjectBaseDeque.h. |