GCpp general purpose C++ library  version 1.0
GListIterT< T > Class Template Reference

#include <GListIterT.hh>

Inheritance diagram for GListIterT< T >:
GIterT< T >

Public Member Functions

template<class Q >
bool IsInstanceOf () const
 
template<class Q >
bool IsInstanceOf ()
 
virtual GListIterT< T > * Clone () const
 
virtual const char * ClassName () const
 
 GListIterT ()
 
 GListIterT (const GListIterT< T > &p)
 
virtual ~GListIterT ()
 
GListIterT< T > & operator= (const GListIterT< T > &p)
 
void SetPreviousIterPtr (GListIterT< T > *iter_ptr)
 
void SetNextIterPtr (GListIterT< T > *iter_ptr)
 
virtual bool operator== (const GListIterT< T > &p) const
 
virtual bool operator!= (const GListIterT< T > &p) const
 
GListIterT< T > & operator++ (void)
 
GListIterT< T > & operator-- (void)
 
GListIterT< T > operator++ (int)
 
GListIterT< T > operator-- (int)
 
const GListIterT< T > * PreviousIterPtr () const
 
const GListIterT< T > * NextIterPtr () const
 
GListIterT< T > * PreviousIterPtr ()
 
GListIterT< T > * NextIterPtr ()
 
GListIterT< T > Previous () const
 
GListIterT< T > Next () const
 
virtual int Index ()
 
- Public Member Functions inherited from GIterT< T >
template<class Q >
bool IsInstanceOf () const
 
template<class Q >
bool IsInstanceOf ()
 
 GIterT (T *adr=NULL)
 
 GIterT (const GIterT< T > &p)
 
GIterT< T > & operator= (const GIterT< T > &p)
 
GIterT< T > & operator= (T *adr)
 
void SetItemPtr (T *adr)
 
u_int GetFlags () const
 
void SetFlags (u_int fl)
 
void SetFlag (u_int fl, bool on=true)
 
bool IsFlagOn (u_int fl) const
 
bool IsFlagOff (u_int fl) const
 
 operator bool (void) const
 
 operator T * (void) const
 
virtual T & operator* (void)
 
virtual T * operator-> (void)
 
virtual const T & operator* (void) const
 
virtual const T * operator-> (void) const
 
virtual bool operator== (const GIterT< T > &p) const
 
virtual bool operator!= (const GIterT< T > &p) const
 
virtual bool operator== (const T *adr) const
 
virtual bool operator!= (const T *adr) const
 
GIterT< T > & operator++ (void)
 
GIterT< T > & operator-- (void)
 
GIterT< T > operator++ (int)
 
GIterT< T > operator-- (int)
 
T * GetPointer ()
 

Static Public Member Functions

static const char * StaticClassName ()
 
- Static Public Member Functions inherited from GIterT< T >
static const char * StaticClassName ()
 

Protected Attributes

GListIterT< T > * previous_item
 Pointer on the list iterator of previous item.
 
GListIterT< T > * next_item
 Pointer on the list iterator of next item.
 
- Protected Attributes inherited from GIterT< T >
u_int flags
 Iterator flags.
 
T * item_ptr
 Pointer on the instance of class T object.
 

Friends

class GListT< T >
 

Detailed Description

template<class T>
class GListIterT< T >

The template class GListIterT defines the list collections iterator.

Constructor & Destructor Documentation

template<class T >
GListIterT< T >::GListIterT ( )
inline
template<class T>
GListIterT< T >::GListIterT ( const GListIterT< T > &  p)
inline

Copy constructor.

Parameters
piterator to be copied.

References GDebugConst, GListIterT< T >::next_item, and GListIterT< T >::previous_item.

template<class T >
GListIterT< T >::~GListIterT ( )
inlinevirtual

Destructor.

References GDebugDest.

Member Function Documentation

template<class T >
int GListIterT< T >::Index ( )
virtual

Return iterator position in the list.

References GIterT< T >::item_ptr, and GListIterT< T >::previous_item.

template<class T>
template<class Q >
bool GListIterT< T >::IsInstanceOf ( ) const
inline

Macro from GCpp library that defines the following functions:

  • ClassName(): return the real class name of the object
  • StaticClassName(): return the used class name of the object (that may be a base class of the real object).
  • IsInstanceOf<T>(): return true if the current object is an instance of the template class name argument
  • Clone(): return an allocated copy of the object.
template<class T >
GListIterT< T > GListIterT< T >::Next ( ) const
inline

Return the iterator to the next object in the list.

Referenced by GSortListT< T >::IsSorted(), GTreeNodeT< T >::NextNode(), and GIntervalList::Remove().

template<class T >
const GListIterT< T > * GListIterT< T >::NextIterPtr ( ) const
inline

Return the pointer to the next iterator (it should be for internal use only).

Referenced by GNamedListT< T >::__FindName(), and GSortListT< T >::Sort().

template<class T >
GListIterT< T > * GListIterT< T >::NextIterPtr ( )
inline

Return the pointer to the next iterator (it should be for internal use only).

template<class T>
bool GListIterT< T >::operator!= ( const GListIterT< T > &  p) const
inlinevirtual

Return true if the class T object pointer, the previous or next iterator are the different.

References GIterT< T >::item_ptr, GListIterT< T >::next_item, and GListIterT< T >::previous_item.

template<class T >
GListIterT< T > & GListIterT< T >::operator++ ( void  )
inline

Prefix incrementation (faster that postfix).

template<class T >
GListIterT< T > GListIterT< T >::operator++ ( int  )
inline

Postfix incrementation.

template<class T >
GListIterT< T > & GListIterT< T >::operator-- ( void  )
inline

Prefix decrementation (faster that postfix).

template<class T >
GListIterT< T > GListIterT< T >::operator-- ( int  )
inline

Postfix decrementation.

template<class T>
bool GListIterT< T >::operator== ( const GListIterT< T > &  p) const
inlinevirtual

Return true if the class T object pointer, the previous and next iterator are the same.

References GIterT< T >::item_ptr, GListIterT< T >::next_item, and GListIterT< T >::previous_item.

template<class T >
GListIterT< T > GListIterT< T >::Previous ( ) const
inline

Return the iterator to the previous object in the list.

template<class T >
const GListIterT< T > * GListIterT< T >::PreviousIterPtr ( ) const
inline

Return the pointer to the previous iterator (it should be for internal use only).

Referenced by GNamedListT< T >::__FindName(), and GSortListT< T >::Sort().

template<class T >
GListIterT< T > * GListIterT< T >::PreviousIterPtr ( )
inline

Return the pointer to the previous iterator (it should be for internal use only).

template<class T>
void GListIterT< T >::SetNextIterPtr ( GListIterT< T > *  iter_ptr)
inline

Redéfinit le pointeur sur l'itérateur suivant.

Parameters
iter_ptrpointer to the iterator
template<class T>
void GListIterT< T >::SetPreviousIterPtr ( GListIterT< T > *  iter_ptr)
inline

Redefines the pointer to previous iterator.

Parameters
iter_ptrpointer to the iterator

The documentation for this class was generated from the following files: