#include <vtkVector.h>
Inheritance diagram for vtkVector< DType >:
Public Types | |
typedef vtkAbstractList< DType > | Superclass |
typedef vtkVectorIterator< DType > | IteratorType |
Public Member Functions | |
vtkVectorIterator< DType > * | NewIterator () |
int | AppendItem (DType a) |
void | CopyItems (vtkVector< DType > *in) |
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) |
void | GetItemNoCheck (vtkIdType id, DType &ret) |
int | FindItem (DType a, vtkIdType &res) |
int | IsItemPresent (DType a) |
vtkIdType | GetNumberOfItems () const |
vtkIdType | GetSize () const |
void | RemoveAllItems () |
int | SetSize (vtkIdType size) |
void | DebugList () |
void | Sort (vtkVectorSortFunctionType) |
int | FindItem (DType a, vtkAbstractListCompareFunction(DType, compare), vtkIdType &res) |
void | SetResize (int r) |
void | ResizeOn () |
void | ResizeOff () |
int | GetResize () const |
Static Public Member Functions | |
vtkVector< DType > * | New () |
Protected Member Functions | |
vtkVector () | |
virtual | ~vtkVector () |
Protected Attributes | |
vtkIdType | NumberOfItems |
vtkIdType | Size |
int | Resize |
DType * | Array |
Friends | |
class | vtkVectorIterator< DType > |
Definition at line 31 of file vtkVector.h.
|
Reimplemented from vtkAbstractList< DType >. Reimplemented in vtkQueue< DType >. Definition at line 37 of file vtkVector.h. |
|
Definition at line 38 of file vtkVector.h. |
|
Definition at line 128 of file vtkVector.h. |
|
|
|
Reimplemented from vtkAbstractList< DType >. Reimplemented in vtkQueue< 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 vector. |
|
Make a copy of another conatiner. |
|
Insert an Item to the front of the linked list. |
|
Insert an Item to the specific location in the vector. Any items in the vector at a location greater than loc will be shifted by one position to make room for the inserted item. NOTE: this can not be used with SetSize because there will be no room for the additional item. |
|
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 vector |
|
Return an item that was previously added to this vector. |
|
Return an item that was previously added to this vector. |
|
Find an item in the vector. Return one if it was found, zero if it was not found. The location of the item is returned in res. |
|
Find an item in the vector using a comparison routine. Return VTK_OK if it was found, VTK_ERROR if it was not found. The location of the item is returned in res. |
|
Find an item in the vector. Return one if it was found, zero if it was not found. |
|
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 99 of file vtkVector.h. |
|
Returns the number of items the container can currently hold. Definition at line 102 of file vtkVector.h. |
|
Removes all items from the container. |
|
Set the capacity of the vector. It returns VTK_OK if successfull. If capacity is set, the vector will not resize. |
|
Allow or disallow resizing. If resizing is disallowed, when inserting too many elements, it will return VTK_ERROR. Initially allowed. Definition at line 114 of file vtkVector.h. Referenced by vtkVector< vtkAbstractMapItem< const char *, int > * >::ResizeOff(), and vtkVector< vtkAbstractMapItem< const char *, int > * >::ResizeOn(). |
|
Allow or disallow resizing. If resizing is disallowed, when inserting too many elements, it will return VTK_ERROR. Initially allowed. Definition at line 115 of file vtkVector.h. |
|
Allow or disallow resizing. If resizing is disallowed, when inserting too many elements, it will return VTK_ERROR. Initially allowed. Definition at line 116 of file vtkVector.h. |
|
Allow or disallow resizing. If resizing is disallowed, when inserting too many elements, it will return VTK_ERROR. Initially allowed. Definition at line 117 of file vtkVector.h. |
|
Display the content of the list. Reimplemented in vtkQueue< DType >. |
|
Sort the content of the list. Provide a comparison function (see def of vtkVectorSortFunctionType). |
|
Definition at line 33 of file vtkVector.h. |
|
Definition at line 132 of file vtkVector.h. |
|
Definition at line 133 of file vtkVector.h. |
|
Definition at line 134 of file vtkVector.h. |
|
Definition at line 135 of file vtkVector.h. |