Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkLinkedListIterator< DType > Class Template Reference

a templated linked list iterator More...

#include <vtkLinkedListIterator.h>

Inheritance diagram for vtkLinkedListIterator< DType >:

Inheritance graph
[legend]
Collaboration diagram for vtkLinkedListIterator< DType >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

int GetKey (vtkIdType &)
int GetData (DType &)
void InitTraversal ()
int IsDoneWithTraversal ()
void GoToNextItem ()
void GoToPreviousItem ()
void GoToFirstItem ()
void GoToLastItem ()

Protected Member Functions

 vtkLinkedListIterator ()
virtual ~vtkLinkedListIterator ()

Static Protected Member Functions

vtkLinkedListIterator< DType > * New ()

Protected Attributes

vtkLinkedListNode< DType > * Pointer

Friends

class vtkLinkedList< DType >

Detailed Description

template<class DType>
class vtkLinkedListIterator< DType >

a templated linked list iterator

Definition at line 27 of file vtkLinkedListIterator.h.


Constructor & Destructor Documentation

template<class DType>
vtkLinkedListIterator< DType >::vtkLinkedListIterator  )  [inline, protected]
 

Definition at line 66 of file vtkLinkedListIterator.h.

References vtkLinkedListIterator< DType >::Pointer.

template<class DType>
virtual vtkLinkedListIterator< DType >::~vtkLinkedListIterator  )  [inline, protected, virtual]
 

Definition at line 69 of file vtkLinkedListIterator.h.


Member Function Documentation

template<class DType>
int vtkLinkedListIterator< DType >::GetKey vtkIdType &   ) 
 

Retrieve the index of the element. This method returns VTK_OK if key was retrieved correctly.

template<class DType>
int vtkLinkedListIterator< DType >::GetData DType &   ) 
 

Retrieve the data from the iterator. This method returns VTK_OK if key was retrieved correctly.

template<class DType>
void vtkLinkedListIterator< DType >::InitTraversal  ) 
 

Initialize the traversal of the container. Set the iterator to the "beginning" of the container.

template<class DType>
int vtkLinkedListIterator< DType >::IsDoneWithTraversal  ) 
 

Check if the iterator is at the end of the container. Returns 1 for yes and 0 for no.

template<class DType>
void vtkLinkedListIterator< DType >::GoToNextItem  ) 
 

Increment the iterator to the next location.

template<class DType>
void vtkLinkedListIterator< DType >::GoToPreviousItem  ) 
 

Decrement the iterator to the next location. On singly Linked list this operations is extremely expensive, because it has to traverse through potentially whole list.

template<class DType>
void vtkLinkedListIterator< DType >::GoToFirstItem  ) 
 

Go to the first item of the list.

template<class DType>
void vtkLinkedListIterator< DType >::GoToLastItem  ) 
 

Go to the last item of the list.

template<class DType>
vtkLinkedListIterator<DType>* vtkLinkedListIterator< DType >::New  )  [static, protected]
 


Friends And Related Function Documentation

template<class DType>
friend class vtkLinkedList< DType > [friend]
 

Definition at line 29 of file vtkLinkedListIterator.h.


Member Data Documentation

template<class DType>
vtkLinkedListNode<DType>* vtkLinkedListIterator< DType >::Pointer [protected]
 

Definition at line 71 of file vtkLinkedListIterator.h.

Referenced by vtkLinkedListIterator< DType >::vtkLinkedListIterator().


The documentation for this class was generated from the following file:
Generated on Tue May 30 12:39:50 2006 for ParaView by doxygen 1.3.5