GCpp general purpose C++ library
version 1.0
|
#include <GIterT.hh>
Public Member Functions | |
template<class Q > | |
bool | IsInstanceOf () const |
template<class Q > | |
bool | IsInstanceOf () |
virtual GIterT< T > * | Clone () const |
virtual const char * | ClassName () const |
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 () |
Protected Attributes | |
u_int | flags |
Iterator flags. | |
T * | item_ptr |
Pointer on the instance of class T object. | |
The template class GIterT is a base class for collection iterators. It should be derived for specific types of collections.
The base class encapsulates a standard class T object pointer.
Default constructor.
adr | adress of a class T object |
Copy constructor.
p | object to copy |
References GIterT< T >::flags, and GIterT< T >::item_ptr.
|
inline |
Return the standard T object pointer.
Referenced by GSortListT< T >::IsSorted(), GIntervalList::Remove(), and GSortListT< T >::Sort().
Return true if the bit flags corresponding to argument are OFF.
fl | flag bits |
Return true if the bit flags corresponding to argument are ON.
fl | flag bits |
Referenced by GListT< T >::GListT(), GVectT< T >::GVectT(), GVectT< T >::operator=(), GListT< T >::operator=(), and GListT< T >::Remove().
Macro from GCpp library that defines the following functions:
|
inline |
Cast to boolean, to check for NULL pointer.
|
inline |
Cast operator: return the standard T object pointer.
Return true if the class T pointers are the different.
References GIterT< T >::item_ptr.
|
inlinevirtual |
Return true if the class T pointers does not corresponds to the argument.
adr | class T standard pointer |
Reimplemented in GVectIterT< T >.
|
inlinevirtual |
Operator *: return the reference to the class T object.
|
inlinevirtual |
Operator *: return the reference to the class T object.
Prefix incrementation (faster that postfix).
Prefix decrementation (faster that postfix).
|
inlinevirtual |
Dereference (->) operator (access to a field of T object).
|
inlinevirtual |
Dereference (->) operator (access to a field of T object).
Affectation operator.
p | class T iterator |
References GIterT< T >::flags, and GIterT< T >::item_ptr.
Affectation operator.
adr | class T standard pointer |
Return true if the class T pointers are the same.
References GIterT< T >::item_ptr.
|
inlinevirtual |
Return true if the class T pointers corresponds to the argument.
adr | class T standard pointer |
Reimplemented in GVectIterT< T >.
Set selected bit flags ON / OFF.
fl | selected flag bits |
on | bits status to set |
|
inline |
Redefine the class T object pointer of the iterator.
adr | class T standard pointer |