GCpp general purpose C++ library  version 1.0
GPointerList Class Reference

#include <GPointerList.hh>

Inheritance diagram for GPointerList:
GListT< GPointer > GCollectionT< GPointer >

Public Types

typedef GListIterT< GPointeriterator
 Itérateur (local) des éléments de la collection.
 

Public Member Functions

template<class Q >
bool IsInstanceOf () const
 
template<class Q >
bool IsInstanceOf ()
 
virtual GPointerListClone () const
 
virtual const char * ClassName () const
 
 GPointerList ()
 
 GPointerList (const GPointerList &original)
 
virtual ~GPointerList ()
 
GPointerListoperator= (const GPointerList &original)
 
- Public Member Functions inherited from GListT< GPointer >
bool IsInstanceOf () const
 
bool IsInstanceOf ()
 
 GListT (u_int opts=0)
 
 GListT (const GListT< GPointer > &list)
 
 GListT (const GListT< GPointer > &list, u_int opts)
 
GListT< GPointer > & operator= (const GListT< GPointer > &list)
 
virtual GListIterT< GPointerBegin () const
 
virtual GListIterT< GPointerEnd () const
 
virtual bool Exist (const GPointer *ptr) const
 
virtual GListIterT< GPointerFind (const GPointer *ptr) const
 
virtual GListIterT< GPointerFindNext (const GPointer *ptr) const
 
virtual GListIterT< GPointerFindPrevious (const GPointer *ptr) const
 
virtual GListIterT< GPointerFindFirst (const GPointer *ptr) const
 
virtual GListIterT< GPointerFindLast (const GPointer *ptr) const
 
GListIterT< GPointerCurrent () const
 
GListIterT< GPointerPrevious () const
 
GListIterT< GPointerNext () const
 
GListIterT< GPointerFirst () const
 
GListIterT< GPointerLast () const
 
GListIterT< GPointerGoto (u_int n=0) const
 
GPointerAt (u_int n) const
 
int Index () const
 
virtual int Move (int n)
 
virtual bool MoveUp ()
 
virtual bool MoveDown ()
 
virtual bool MoveTop ()
 
virtual bool MoveBottom ()
 
virtual GListIterT< GPointerAdd (GPointer *obj_ptr)
 
virtual GListIterT< GPointerAdd (GPointer &obj_ptr)
 
virtual GListIterT< GPointerInsert (GPointer *obj_ptr)
 
virtual GListIterT< GPointerInsert (GPointer &obj_ptr)
 
virtual GListIterT< GPointerAppend (GPointer *obj_ptr)
 
virtual GListIterT< GPointerAppend (GPointer &obj_ptr)
 
virtual GListIterT< GPointerPrepend (GPointer *obj_ptr)
 
virtual GListIterT< GPointerPrepend (GPointer &obj_ptr)
 
virtual GPointerTake ()
 
virtual GPointerTake (const GPointer *ptr)
 
virtual bool Remove ()
 
virtual bool Remove (const GPointer *ptr, bool all=true)
 
virtual void Empty ()
 
- Public Member Functions inherited from GCollectionT< GPointer >
bool IsInstanceOf () const
 
bool IsInstanceOf ()
 
 GCollectionT (u_int flg=0)
 
virtual u_int GetSize () const
 
virtual u_int GetCount () const
 
virtual u_int GetOptions () const
 
bool CheckOptions (u_int opts) const
 
bool FixPositionOption () const
 
bool IsSortable () const
 
bool IsAlwaysSorted () const
 
bool IsReverseSorted () const
 
bool UniqueNameOption () const
 
bool IsCaseSensitive () const
 
bool DictSortOption () const
 

Static Public Member Functions

static const char * StaticClassName ()
 
- Static Public Member Functions inherited from GListT< GPointer >
static const char * StaticClassName ()
 
static GListIterT< GPointerNull ()
 
- Static Public Member Functions inherited from GCollectionT< GPointer >
static const char * StaticClassName ()
 

Additional Inherited Members

- Protected Member Functions inherited from GListT< GPointer >
virtual GListIterT< GPointer > * __Exist (const GPointer *ptr, GListIterT< GPointer > *except=NULL) const
 
virtual GListIterT< GPointer > * __Find (const GPointer *ptr, GListIterT< GPointer > *except=NULL) const
 
virtual GListIterT< GPointer__Add (GPointer *item)
 
virtual GListIterT< GPointer__Insert (GPointer *item)
 
virtual GPointer__Take ()
 
virtual void __Swap (GListIterT< GPointer > *iter)
 
virtual bool __MoveUp ()
 
virtual bool __MoveDown ()
 
- Protected Attributes inherited from GListT< GPointer >
GListIterT< GPointer > ** first_item
 Iterator on first object in the list.
 
GListIterT< GPointer > ** last_item
 Iterator on last object in the list.
 
GListIterT< GPointer > ** current_item
 Iterator on current object in the list.
 
- Protected Attributes inherited from GCollectionT< GPointer >
u_int options
 Collection option flags.
 
u_int count_item
 Number of objects in the collection.
 

Detailed Description

This class defines a list of GPointer, to create a list of pointers with any type of class (especially for base types).

Constructor & Destructor Documentation

GPointerList::GPointerList ( )
inline

Constructor.

GPointerList::GPointerList ( const GPointerList original)
inline

Copy constructor.

Parameters
originallist to copy
GPointerList::~GPointerList ( )
inlinevirtual

Destructor.

Member Function Documentation

template<class Q >
bool GPointerList::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.
GPointerList & GPointerList::operator= ( const GPointerList original)

Affectation operator.

Parameters
originallist to copy

References G_AFFECT_MOTHER.


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