#include <vtkLinkedList.h>
Inheritance diagram for vtkLinkedList< DType >:
Public Types | |
typedef vtkAbstractList< DType > | Superclass |
typedef vtkLinkedListIterator< DType > | IteratorType |
Public Member Functions | |
vtkLinkedListIterator< DType > * | NewIterator () |
int | AppendItem (DType a) |
int | PrependItem (DType a) |
int | InsertItem (vtkIdType loc, DType a) |
int | SetItem (vtkIdType loc, DType a) |
void | SetItemNoCheck (vtkIdType loc, DType a) |
int | RemoveItem (vtkIdType id) |
int | GetItem (vtkIdType id, DType &ret) |
int | FindItem (DType a, vtkIdType &res) |
vtkIdType | GetNumberOfItems () const |
vtkIdType | GetSize () const |
void | RemoveAllItems () |
int | SetSize (vtkIdType) |
void | DebugList () |
int | FindItem (DType a, vtkAbstractListCompareFunction(DType, compare), vtkIdType &res) |
Static Public Member Functions | |
vtkLinkedList< DType > * | New () |
Protected Member Functions | |
vtkLinkedList () | |
virtual | ~vtkLinkedList () |
vtkLinkedListNode< DType > * | FindNode (vtkIdType i) |
Protected Attributes | |
vtkIdType | NumberOfItems |
vtkLinkedListNode< DType > * | Head |
vtkLinkedListNode< DType > * | Tail |
Friends | |
class | vtkLinkedListIterator< DType > |
Definition at line 27 of file vtkLinkedList.h.
|
Reimplemented from vtkAbstractList< DType >. Definition at line 33 of file vtkLinkedList.h. |
|
Definition at line 34 of file vtkLinkedList.h. |
|
Definition at line 99 of file vtkLinkedList.h. |
|
|
|
Reimplemented from vtkAbstractList< DType >. |
|
Return an iterator to the list. This iterator is allocated using New, so the developer is responsible for deleating it. |
|
Append an Item to the end of the linked list. |
|
Insert an Item to the front of the linked list. |
|
Insert an Item to the specific location in the linked list. |
|
Sets the Item at the specific location in the list to a new value. It also checks if the item can be set. It returns VTK_OK if successfull. |
|
Sets the Item at the specific location in the list to a new value. This method does not perform any error checking. |
|
Remove an Item from the linked list |
|
Return an item that was previously added to this linked list. |
|
Find an item in the linked list. Return VTK_OK if it was found od VTK_ERROR if not found. The location of the item is returned in res. |
|
Find an item in the linked list using a comparison routine. Return VTK_OK if it was found od VTK_ERROR if not found. The location of the item is returned in res. |
|
Return the number of items currently held in this container. This different from GetSize which is provided for some containers. GetSize will return how many items the container can currently hold. Definition at line 81 of file vtkLinkedList.h. |
|
Returns the number of items the container can currently hold. Since capacity is arbitrary for the linked list, this will always return the current number of elements. Definition at line 86 of file vtkLinkedList.h. |
|
Removes all items from the container. |
|
Since linked list does not have the notion of capacity, this method always return VTK_ERROR. Definition at line 93 of file vtkLinkedList.h. |
|
This method dumps debug of the linked list. |
|
Find a node with given index. |
|
Definition at line 29 of file vtkLinkedList.h. |
|
Definition at line 108 of file vtkLinkedList.h. |
|
Definition at line 109 of file vtkLinkedList.h. |
|
Definition at line 110 of file vtkLinkedList.h. |