GizmoBase

gzDataSortIterator< T, SORTVAL > Class Template Reference

#include <gzTemplates.h>

List of all members.

Public Member Functions

 gzDataSortIterator (gzDataSort< T, SORTVAL > &owner, gzBool goforward=TRUE)
gzVoid reset (gzBool goforward=TRUE)
T * operator() ()
T * operator++ (int)
T * operator-- (int)
T * key ()
SORTVAL sortval ()
T * first ()
 Get the first item, reset the iterator to first position. Next iteration returns second iterator step.
T * last ()
 Get the first item, reset the iterator to last position. Next iteration returns second iterator step.
gzVoid remove ()
gzBool operator== (const gzDataSortIterator< T, SORTVAL > &right) const
gzBool operator< (const gzDataSortIterator< T, SORTVAL > &right) const
gzBool operator> (const gzDataSortIterator< T, SORTVAL > &right) const
gzULong distance (const gzDataSortIterator< T, SORTVAL > &right) const
gzVoid storePosition (gzULong &currentItemIndex, gzULong &currentAddItemIndex)
gzVoid restorePosition (gzULong currentItemIndex, gzULong currentAddItemIndex)


Detailed Description

template<class T, class SORTVAL>
class gzDataSortIterator< T, SORTVAL >

Definition at line 6287 of file gzTemplates.h.


Constructor & Destructor Documentation

template<class T, class SORTVAL>
gzDataSortIterator< T, SORTVAL >::gzDataSortIterator gzDataSort< T, SORTVAL > &  owner,
gzBool  goforward = TRUE
[inline]
 

Definition at line 6339 of file gzTemplates.h.

References gzDataSortIterator< T, SORTVAL >::reset().


Member Function Documentation

template<class T, class SORTVAL>
gzULong gzDataSortIterator< T, SORTVAL >::distance const gzDataSortIterator< T, SORTVAL > &  right  )  const [inline]
 

Definition at line 6453 of file gzTemplates.h.

References throwFatalTemplateError().

template<class T, class SORTVAL>
T * gzDataSortIterator< T, SORTVAL >::first  )  [inline]
 

Get the first item, reset the iterator to first position. Next iteration returns second iterator step.

Definition at line 6367 of file gzTemplates.h.

References gzDataSortIterator< T, SORTVAL >::operator++(), and gzDataSortIterator< T, SORTVAL >::reset().

template<class T, class SORTVAL>
T * gzDataSortIterator< T, SORTVAL >::key  )  [inline]
 

Definition at line 6396 of file gzTemplates.h.

References NULL.

Referenced by gzDataSort< T, SORTVAL >::operator[]().

template<class T, class SORTVAL>
T * gzDataSortIterator< T, SORTVAL >::last  )  [inline]
 

Get the first item, reset the iterator to last position. Next iteration returns second iterator step.

Definition at line 6374 of file gzTemplates.h.

References gzDataSortIterator< T, SORTVAL >::operator--(), and gzDataSortIterator< T, SORTVAL >::reset().

template<class T, class SORTVAL>
T * gzDataSortIterator< T, SORTVAL >::operator()  )  [inline]
 

Definition at line 6696 of file gzTemplates.h.

References FALSE, NULL, and TRUE.

template<class T, class SORTVAL>
T * gzDataSortIterator< T, SORTVAL >::operator++ int   )  [inline]
 

Definition at line 6490 of file gzTemplates.h.

References FALSE, NULL, and TRUE.

Referenced by gzDataSortIterator< T, SORTVAL >::first().

template<class T, class SORTVAL>
T * gzDataSortIterator< T, SORTVAL >::operator-- int   )  [inline]
 

Definition at line 6594 of file gzTemplates.h.

References FALSE, NULL, and TRUE.

Referenced by gzDataSortIterator< T, SORTVAL >::last().

template<class T, class SORTVAL>
gzBool gzDataSortIterator< T, SORTVAL >::operator< const gzDataSortIterator< T, SORTVAL > &  right  )  const [inline]
 

Definition at line 6430 of file gzTemplates.h.

References gzDataSortIterator< T, SORTVAL >::currentItemIndex, FALSE, gzDataSortIterator< T, SORTVAL >::m_owner, gzDataSortIterator< T, SORTVAL >::sortval(), and throwFatalTemplateError().

Referenced by gzDataSortIterator< T, SORTVAL >::operator>().

template<class T, class SORTVAL>
gzBool gzDataSortIterator< T, SORTVAL >::operator== const gzDataSortIterator< T, SORTVAL > &  right  )  const [inline]
 

Definition at line 6417 of file gzTemplates.h.

References gzDataSortIterator< T, SORTVAL >::currentItemIndex, FALSE, gzDataSortIterator< T, SORTVAL >::m_owner, throwFatalTemplateError(), and TRUE.

Referenced by gzDataSortIterator< T, SORTVAL >::operator>().

template<class T, class SORTVAL>
gzBool gzDataSortIterator< T, SORTVAL >::operator> const gzDataSortIterator< T, SORTVAL > &  right  )  const [inline]
 

Definition at line 6446 of file gzTemplates.h.

References gzDataSortIterator< T, SORTVAL >::operator<(), and gzDataSortIterator< T, SORTVAL >::operator==().

template<class T, class SORTVAL>
gzVoid gzDataSortIterator< T, SORTVAL >::remove  )  [inline]
 

Definition at line 6381 of file gzTemplates.h.

References TRUE.

template<class T, class SORTVAL>
gzVoid gzDataSortIterator< T, SORTVAL >::reset gzBool  goforward = TRUE  )  [inline]
 

Definition at line 6359 of file gzTemplates.h.

References TRUE.

Referenced by gzDataSortIterator< T, SORTVAL >::first(), gzDataSortIterator< T, SORTVAL >::gzDataSortIterator(), and gzDataSortIterator< T, SORTVAL >::last().

template<class T, class SORTVAL>
gzVoid gzDataSortIterator< T, SORTVAL >::restorePosition gzULong  currentItemIndex,
gzULong  currentAddItemIndex
[inline]
 

Definition at line 6350 of file gzTemplates.h.

template<class T, class SORTVAL>
SORTVAL gzDataSortIterator< T, SORTVAL >::sortval  )  [inline]
 

Definition at line 6407 of file gzTemplates.h.

Referenced by gzDataSort< T, SORTVAL >::gzDataSort(), gzDataSortIterator< T, SORTVAL >::operator<(), and gzDataSort< T, SORTVAL >::operator=().

template<class T, class SORTVAL>
gzVoid gzDataSortIterator< T, SORTVAL >::storePosition gzULong currentItemIndex,
gzULong currentAddItemIndex
[inline]
 

Definition at line 6344 of file gzTemplates.h.


The documentation for this class was generated from the following file:
Documentation for GizmoBase generated at Wed Feb 20 11:57:56 2008 by   Saab Training Systems AB, ¸ (c) 2003-and beyond