Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

MyListIterator< T > Class Template Reference

#include <MyList.h>

List of all members.

Public Member Functions

 MyListIterator ()
 Attention tant que l'iterateur n'est pas rattaché a sa source, auccun appel ne peut fonctionner.

 MyListIterator (MyList< T > *_list)
BOOL Bind (MyList< T > *_list)
void operator= (MyListIterator &src)
void Zero ()
 Place l'iterateur par defaut sur "rien".

MyListItem< T > * GetCurrent ()
int GetIndex ()
 Donne l'index de l'element courrent.

BOOL MoveFirst ()
BOOL MoveLast ()
MyListItem< T > * AddBefore (T *elem, BOOL selfAlloc, BOOL selfUnAlloc)
MyListItem< T > * AddBefore (MyListItem< T > *item)
MyListItem< T > * AddFirst (T *elem, BOOL selfAlloc, BOOL selfUnAlloc)
MyListItem< T > * AddFirst (MyListItem< T > *item)
MyListItem< T > * AddLast (T *elem, BOOL selfAlloc, BOOL selfUnAlloc)
MyListItem< T > * AddLast (MyListItem< T > *item)
MyListItem< T > * AddAfter (T *elem, BOOL selfAlloc, BOOL selfUnAlloc)
MyListItem< T > * AddAfter (MyListItem< T > *item)
MyListItem< T > * AddFirst (T *elem)
 Ajout en debut de liste.

MyListItem< T > * AddFirst (T &elem)
T * AddNewFirst ()
MyListItem< T > * AddLast (T *elem)
 Ajout en fin de liste.

MyListItem< T > * AddLast (T &elem)
T * AddNewLast ()
MyListItem< T > * AddBefore (T *elem)
 Ajourt avant le current.

MyListItem< T > * AddBefore (T &elem)
T * AddNewBefore ()
MyListItem< T > * AddAfter (T *elem)
 jout apres le current

MyListItem< T > * AddAfter (T &elem)
T * AddNewAfter ()
BOOL SuprFirst (BOOL withItem=TRUE)
 Supression d'un element dans la liste en tete.

BOOL SuprLast (BOOL withItem=TRUE)
 Supression d'un element dans la liste en fin.

void SuprAll ()
 Supression de toute la list.

BOOL Supr (MyListItem< T > *item, BOOL withItem=TRUE)
 Supression d'un element donnée.

BOOL Supr (BOOL withItem=TRUE)
 Supression d'un element dans la liste courante.

BOOL SuprIndex (int index, BOOL withItem=TRUE)
 Supression a une index donnée.

BOOL GoTo (MyListItem< T > *item)
 Se place a la position d'un element donnée.

BOOL GoTo (T elem)
 Se place a la position d'un element donnée.

BOOL GoAfter ()
 Va apres.

BOOL GoBefore ()
 Va avant.

BOOL GoFirst ()
 Va au debut.

BOOL GoIndex (ETypeStart start, int nb)
 Va depuis curent,first,last,before,after deplace de nb infos.

BOOL GoLast ()
 Va a la fin.

T & GetElem (int index=-1)
 Donne un element de la liste.

T * GetElemPtr ()
T * GetElemPtr (int index)
 Donne un ptr sur l'element de la liste.

BOOL More ()
 Enumeration terminé ?

BOOL IsOnLast ()
 Est on sur le dernier element ?

BOOL IsOnFirst ()
 Est on sur le dernier element ?

MyListItem< T > * operator+= (T *elem)
MyListItem< T > * operator+= (T elem)
BOOL operator= (int index)
BOOL operator++ (int)
BOOL operator-- (int)
T * operator() (int num=-1)
T & operator[] (int num)

template<class T>
class MyListIterator< T >


Constructor & Destructor Documentation

template<class T>
MyListIterator< T >::MyListIterator  )  [inline]
 

Attention tant que l'iterateur n'est pas rattaché a sa source, auccun appel ne peut fonctionner.

Definition at line 167 of file MyList.h.

template<class T>
MyListIterator< T >::MyListIterator MyList< T > *  _list  )  [inline]
 

Definition at line 171 of file MyList.h.


Member Function Documentation

template<class T>
MyListItem<T>* MyListIterator< T >::AddAfter T &  elem  )  [inline]
 

Definition at line 396 of file MyList.h.

template<class T>
MyListItem<T>* MyListIterator< T >::AddAfter T *  elem  )  [inline]
 

jout apres le current

Definition at line 395 of file MyList.h.

template<class T>
MyListItem<T>* MyListIterator< T >::AddAfter MyListItem< T > *  item  )  [inline]
 

Definition at line 335 of file MyList.h.

template<class T>
MyListItem<T>* MyListIterator< T >::AddAfter T *  elem,
BOOL  selfAlloc,
BOOL  selfUnAlloc
[inline]
 

Definition at line 329 of file MyList.h.

Referenced by MyListIterator< ParsingWord >::AddAfter(), MyListIterator< ParsingWord >::AddNewAfter(), and MyList< ParsingWord >::Load().

template<class T>
MyListItem<T>* MyListIterator< T >::AddBefore T &  elem  )  [inline]
 

Definition at line 386 of file MyList.h.

template<class T>
MyListItem<T>* MyListIterator< T >::AddBefore T *  elem  )  [inline]
 

Ajourt avant le current.

Definition at line 385 of file MyList.h.

template<class T>
MyListItem<T>* MyListIterator< T >::AddBefore MyListItem< T > *  item  )  [inline]
 

Definition at line 254 of file MyList.h.

template<class T>
MyListItem<T>* MyListIterator< T >::AddBefore T *  elem,
BOOL  selfAlloc,
BOOL  selfUnAlloc
[inline]
 

Definition at line 248 of file MyList.h.

Referenced by MyListIterator< ParsingWord >::AddBefore(), and MyListIterator< ParsingWord >::AddNewBefore().

template<class T>
MyListItem<T>* MyListIterator< T >::AddFirst T &  elem  )  [inline]
 

Definition at line 366 of file MyList.h.

template<class T>
MyListItem<T>* MyListIterator< T >::AddFirst T *  elem  )  [inline]
 

Ajout en debut de liste.

Definition at line 365 of file MyList.h.

template<class T>
MyListItem<T>* MyListIterator< T >::AddFirst MyListItem< T > *  item  )  [inline]
 

Definition at line 293 of file MyList.h.

template<class T>
MyListItem<T>* MyListIterator< T >::AddFirst T *  elem,
BOOL  selfAlloc,
BOOL  selfUnAlloc
[inline]
 

Definition at line 287 of file MyList.h.

Referenced by MyListIterator< ParsingWord >::AddFirst(), MyListIterator< ParsingWord >::AddNewFirst(), and MyListIterator< ParsingWord >::MoveFirst().

template<class T>
MyListItem<T>* MyListIterator< T >::AddLast T &  elem  )  [inline]
 

Definition at line 376 of file MyList.h.

template<class T>
MyListItem<T>* MyListIterator< T >::AddLast T *  elem  )  [inline]
 

Ajout en fin de liste.

Definition at line 375 of file MyList.h.

template<class T>
MyListItem<T>* MyListIterator< T >::AddLast MyListItem< T > *  item  )  [inline]
 

Definition at line 314 of file MyList.h.

template<class T>
MyListItem<T>* MyListIterator< T >::AddLast T *  elem,
BOOL  selfAlloc,
BOOL  selfUnAlloc
[inline]
 

Definition at line 308 of file MyList.h.

Referenced by MyListIterator< ParsingWord >::AddLast(), MyListIterator< ParsingWord >::AddNewLast(), MyListIterator< ParsingWord >::MoveLast(), and MyListIterator< ParsingWord >::operator+=().

template<class T>
T* MyListIterator< T >::AddNewAfter  )  [inline]
 

Definition at line 397 of file MyList.h.

template<class T>
T* MyListIterator< T >::AddNewBefore  )  [inline]
 

Definition at line 387 of file MyList.h.

template<class T>
T* MyListIterator< T >::AddNewFirst  )  [inline]
 

Definition at line 367 of file MyList.h.

template<class T>
T* MyListIterator< T >::AddNewLast  )  [inline]
 

Definition at line 377 of file MyList.h.

template<class T>
BOOL MyListIterator< T >::Bind MyList< T > *  _list  )  [inline]
 

Definition at line 176 of file MyList.h.

Referenced by MyTreeNode< Face >::FindOnParent(), and MyListIterator< ParsingWord >::MyListIterator().

template<class T>
MyListItem<T>* MyListIterator< T >::GetCurrent  )  [inline]
 

Definition at line 198 of file MyList.h.

Referenced by MyListIterator< ParsingWord >::GoTo(), and MyListIterator< ParsingWord >::Supr().

template<class T>
T& MyListIterator< T >::GetElem int  index = -1  )  [inline]
 

Donne un element de la liste.

Ex.:

MyList<int> lInt; lInt+=12; lInt+=13; int res = (int)lInt;

Definition at line 672 of file MyList.h.

Referenced by TreeView::ConfigFacesPlus(), Control::Find(), MyTreeNode< Face >::FindOnParent(), MyListIterator< ParsingWord >::GoTo(), and MyListIterator< ParsingWord >::operator[]().

template<class T>
T* MyListIterator< T >::GetElemPtr int  index  )  [inline]
 

Donne un ptr sur l'element de la liste.

Ex.:

MyList<int> lInt; lInt+=12; lInt+=13; int *ptrRes = (int *)lInt;

Definition at line 696 of file MyList.h.

template<class T>
T* MyListIterator< T >::GetElemPtr  )  [inline]
 

Definition at line 679 of file MyList.h.

Referenced by MyListIterator< ParsingWord >::operator()(), and MyList< ParsingWord >::Save().

template<class T>
int MyListIterator< T >::GetIndex  )  [inline]
 

Donne l'index de l'element courrent.

Returns:
  • l'index
  • -1 si non possible

Definition at line 210 of file MyList.h.

template<class T>
BOOL MyListIterator< T >::GoAfter  )  [inline]
 

Va apres.

Definition at line 558 of file MyList.h.

Referenced by MyListIterator< ParsingWord >::GoIndex(), MyListIterator< ParsingWord >::GoTo(), and MyListIterator< ParsingWord >::operator++().

template<class T>
BOOL MyListIterator< T >::GoBefore  )  [inline]
 

Va avant.

Definition at line 574 of file MyList.h.

Referenced by MyListIterator< ParsingWord >::GoIndex(), and MyListIterator< ParsingWord >::operator--().

template<class T>
BOOL MyListIterator< T >::GoFirst  )  [inline]
 

Va au debut.

Definition at line 590 of file MyList.h.

Referenced by MyListIterator< ParsingWord >::GoIndex(), MyListIterator< ParsingWord >::GoTo(), and MyListIterator< ParsingWord >::SuprAll().

template<class T>
BOOL MyListIterator< T >::GoIndex ETypeStart  start,
int  nb
[inline]
 

Va depuis curent,first,last,before,after deplace de nb infos.

Definition at line 598 of file MyList.h.

Referenced by MyListIterator< ParsingWord >::GetElem(), MyListIterator< ParsingWord >::GetElemPtr(), MyListIterator< ParsingWord >::operator=(), MyListIterator< ParsingWord >::operator[](), and MyListIterator< ParsingWord >::SuprIndex().

template<class T>
BOOL MyListIterator< T >::GoLast  )  [inline]
 

Va a la fin.

Definition at line 649 of file MyList.h.

Referenced by MyListIterator< ParsingWord >::GoIndex().

template<class T>
BOOL MyListIterator< T >::GoTo elem  )  [inline]
 

Se place a la position d'un element donnée.

Definition at line 548 of file MyList.h.

template<class T>
BOOL MyListIterator< T >::GoTo MyListItem< T > *  item  )  [inline]
 

Se place a la position d'un element donnée.

Definition at line 537 of file MyList.h.

template<class T>
BOOL MyListIterator< T >::IsOnFirst  )  [inline]
 

Est on sur le dernier element ?

Definition at line 716 of file MyList.h.

template<class T>
BOOL MyListIterator< T >::IsOnLast  )  [inline]
 

Est on sur le dernier element ?

Definition at line 710 of file MyList.h.

template<class T>
BOOL MyListIterator< T >::More  )  [inline]
 

Enumeration terminé ?

Definition at line 704 of file MyList.h.

Referenced by TreeView::ConfigFacesPlus(), Control::Find(), MyTreeNode< Face >::FindOnParent(), MyListIterator< ParsingWord >::GoIndex(), MyListIterator< ParsingWord >::GoTo(), MyList< ParsingWord >::Save(), MyListIterator< ParsingWord >::Supr(), and MyListIterator< ParsingWord >::SuprAll().

template<class T>
BOOL MyListIterator< T >::MoveFirst  )  [inline]
 

Definition at line 217 of file MyList.h.

Referenced by MyTreeNode< Face >::MoveToFirstChild().

template<class T>
BOOL MyListIterator< T >::MoveLast  )  [inline]
 

Definition at line 224 of file MyList.h.

template<class T>
T* MyListIterator< T >::operator() int  num = -1  )  [inline]
 

Definition at line 747 of file MyList.h.

template<class T>
BOOL MyListIterator< T >::operator++ int   )  [inline]
 

Definition at line 737 of file MyList.h.

template<class T>
MyListItem<T>* MyListIterator< T >::operator+= elem  )  [inline]
 

Definition at line 726 of file MyList.h.

template<class T>
MyListItem<T>* MyListIterator< T >::operator+= T *  elem  )  [inline]
 

Definition at line 721 of file MyList.h.

template<class T>
BOOL MyListIterator< T >::operator-- int   )  [inline]
 

Definition at line 742 of file MyList.h.

template<class T>
BOOL MyListIterator< T >::operator= int  index  )  [inline]
 

Definition at line 731 of file MyList.h.

template<class T>
void MyListIterator< T >::operator= MyListIterator< T > &  src  )  [inline]
 

Definition at line 184 of file MyList.h.

template<class T>
T& MyListIterator< T >::operator[] int  num  )  [inline]
 

Definition at line 752 of file MyList.h.

template<class T>
BOOL MyListIterator< T >::Supr BOOL  withItem = TRUE  )  [inline]
 

Supression d'un element dans la liste courante.

Definition at line 485 of file MyList.h.

template<class T>
BOOL MyListIterator< T >::Supr MyListItem< T > *  item,
BOOL  withItem = TRUE
[inline]
 

Supression d'un element donnée.

Definition at line 472 of file MyList.h.

Referenced by MyListIterator< ParsingWord >::MoveFirst(), MyListIterator< ParsingWord >::MoveLast(), MyListIterator< ParsingWord >::Supr(), and MyListIterator< ParsingWord >::SuprIndex().

template<class T>
void MyListIterator< T >::SuprAll  )  [inline]
 

Supression de toute la list.

Definition at line 463 of file MyList.h.

template<class T>
BOOL MyListIterator< T >::SuprFirst BOOL  withItem = TRUE  )  [inline]
 

Supression d'un element dans la liste en tete.

Definition at line 407 of file MyList.h.

template<class T>
BOOL MyListIterator< T >::SuprIndex int  index,
BOOL  withItem = TRUE
[inline]
 

Supression a une index donnée.

Definition at line 528 of file MyList.h.

template<class T>
BOOL MyListIterator< T >::SuprLast BOOL  withItem = TRUE  )  [inline]
 

Supression d'un element dans la liste en fin.

Definition at line 434 of file MyList.h.

template<class T>
void MyListIterator< T >::Zero  )  [inline]
 

Place l'iterateur par defaut sur "rien".

Definition at line 192 of file MyList.h.

Referenced by MyListIterator< ParsingWord >::Bind(), MyListIterator< ParsingWord >::Supr(), MyListIterator< ParsingWord >::SuprAll(), MyListIterator< ParsingWord >::SuprFirst(), and MyListIterator< ParsingWord >::SuprLast().


The documentation for this class was generated from the following file:
Generated on Fri Aug 20 19:21:26 2004 for 3d Controls by doxygen 1.3.6