GCpp general purpose C++ library
version 1.0
|
#include <GListIterT.hh>
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 () |
![]() | |
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 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. | |
![]() | |
u_int | flags |
Iterator flags. | |
T * | item_ptr |
Pointer on the instance of class T object. | |
Friends | |
class | GListT< T > |
The template class GListIterT defines the list collections iterator.
|
inline |
Defaut constructor.
References GDebugConst, GListIterT< T >::next_item, and GListIterT< T >::previous_item.
|
inline |
Copy constructor.
p | iterator to be copied. |
References GDebugConst, GListIterT< T >::next_item, and GListIterT< T >::previous_item.
|
inlinevirtual |
Destructor.
References GDebugDest.
|
virtual |
Return iterator position in the list.
References GIterT< T >::item_ptr, and GListIterT< T >::previous_item.
Macro from GCpp library that defines the following functions:
|
inline |
Return the iterator to the next object in the list.
Referenced by GSortListT< T >::IsSorted(), GTreeNodeT< T >::NextNode(), and GIntervalList::Remove().
|
inline |
Return the pointer to the next iterator (it should be for internal use only).
Referenced by GNamedListT< T >::__FindName(), and GSortListT< T >::Sort().
|
inline |
Return the pointer to the next iterator (it should be for internal use only).
|
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.
|
inline |
Prefix incrementation (faster that postfix).
|
inline |
Postfix incrementation.
|
inline |
Prefix decrementation (faster that postfix).
|
inline |
Postfix decrementation.
|
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.
|
inline |
Return the iterator to the previous object in the list.
|
inline |
Return the pointer to the previous iterator (it should be for internal use only).
Referenced by GNamedListT< T >::__FindName(), and GSortListT< T >::Sort().
|
inline |
Return the pointer to the previous iterator (it should be for internal use only).
|
inline |
Redéfinit le pointeur sur l'itérateur suivant.
iter_ptr | pointer to the iterator |
|
inline |
Redefines the pointer to previous iterator.
iter_ptr | pointer to the iterator |