GCpp general purpose C++ library
version 1.0
|
#include <GVectIterT.hh>
Public Member Functions | |
template<class Q > | |
bool | IsInstanceOf () const |
template<class Q > | |
bool | IsInstanceOf () |
virtual GVectIterT< T > * | Clone () const |
virtual const char * | ClassName () const |
GVectIterT () | |
GVectIterT (const GVectIterT< T > &p) | |
virtual | ~GVectIterT () |
GVectIterT< T > & | operator= (const GVectIterT< T > &p) |
const GVectT< T > * | GetVectorPtr () const |
GVectT< T > * | GetVectorPtr () |
virtual bool | operator== (const GVectIterT< T > &p) const |
virtual bool | operator!= (const GVectIterT< T > &p) const |
virtual bool | operator== (const T *p) const |
virtual bool | operator!= (const T *p) const |
GVectIterT< T > & | operator++ (void) |
GVectIterT< T > & | operator-- (void) |
GVectIterT< T > | operator++ (int) |
GVectIterT< T > | operator-- (int) |
virtual int | Index () const |
![]() | |
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 |
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 Member Functions | |
GVectIterT (const GVectT< T > *vect, int ind) | |
Protected Attributes | |
GVectT< T > * | vector_ptr |
Vector the iterator points to. | |
int | index |
Index in the vector array. | |
![]() | |
u_int | flags |
Iterator flags. | |
T * | item_ptr |
Pointer on the instance of class T object. | |
Friends | |
class | GVectT< T > |
The template class GVectIterT defines the vector collections iterator.
|
inline |
Defaut constructor.
References GDebugConst, GVectIterT< T >::index, and GVectIterT< T >::vector_ptr.
|
inline |
Copy constructor.
p | iterator to be copied. |
References GDebugConst, GVectIterT< T >::GetVectorPtr(), GVectIterT< T >::index, GVectIterT< T >::Index(), and GVectIterT< T >::vector_ptr.
|
protected |
Constructor from a vector and an index in the vector. It is for internal use by GVectT class.
vect | pointer on the GVectT object |
ind | index value |
References G_AFFECT_MOTHER, GDebugConst, GVectIterT< T >::index, and GVectIterT< T >::vector_ptr.
|
inlinevirtual |
Destructor.
References GDebugDest.
|
inline |
Return the pointer to the vector the iterator comes from.
Referenced by GVectIterT< T >::GVectIterT(), GVectIterT< T >::operator!=(), and GVectIterT< T >::operator==().
|
inline |
Return the pointer to the vector the iterator comes from.
|
inlinevirtual |
Return iterator position in the vector.
Referenced by GVectIterT< T >::GVectIterT(), GVectIterT< T >::operator!=(), and GVectIterT< T >::operator==().
Macro from GCpp library that defines the following functions:
|
inlinevirtual |
Return true if the class T object pointer, the previous or next iterator are the different.
References GVectIterT< T >::GetVectorPtr(), and GVectIterT< T >::Index().
|
inlinevirtual |
Return true if the iterator does not point to the argument object pointer.
Reimplemented from GIterT< T >.
|
inline |
Prefix incrementation (faster that postfix). It replaces current iterator by next one for the vector. If vector is not defined, or if it goes beyond the vector limits, it returns a null iterator.
References G_AFFECT_MOTHER.
GVectIterT< T > GVectIterT< T >::operator++ | ( | int | ) |
Postfix incrementation. It replaces current iterator by next one for the vector. If vector is not defined, or if it goes beyond the vector limits, it returns a null iterator.
References G_AFFECT_MOTHER.
|
inline |
Prefix decrementation (faster that postfix). It replaces current iterator by previous one for the vector. If vector is not defined, or if it goes beyond the vector limits, it returns a null iterator.
References G_AFFECT_MOTHER.
GVectIterT< T > GVectIterT< T >::operator-- | ( | int | ) |
Postfix decrementation. It replaces current iterator by previous one for the vector. If vector is not defined, or if it goes beyond the vector limits, it returns a null iterator.
References G_AFFECT_MOTHER.
|
inlinevirtual |
Return true if the class T object pointer, the previous and next iterator are the same.
References GVectIterT< T >::GetVectorPtr(), and GVectIterT< T >::Index().
|
inlinevirtual |
Return true if the iterator points to the argument object pointer.
Reimplemented from GIterT< T >.