#include <MyList.h>
Public Member Functions | |
MyListItem () | |
MyListItem (T *_elem, BOOL _selfAlloc, BOOL _selfUnAlloc) | |
void | ZeroLink () |
MyListItem (T *_elem) | |
MyListItem (T &_elem) | |
~MyListItem () | |
void | Delete () |
Efface un elem de list et sa valeur associé. | |
void | New (T *_elem, BOOL _selfAlloc, BOOL _selfUnAlloc) |
Cree un element de la liste avec comme valuer l'element lui meme alloue et recopié de l'original. | |
void | New (T *elem) |
void | New (T &elem) |
Public Attributes | |
T * | elem |
MyListItem< T > * | after |
MyListItem< T > * | before |
BOOL | selfUnAlloc |
Ex.:
MyList <int> listInt; //liste de int; int num; listInt.AddFirst(12); listInt.AddFirst(13); listInt += 14; listInt.AddAfterCurrent(5); listInt.AddBeforCurrent(6); listInt.AddFirst(7); for (listInt=0;listInt.More();listInt++) { int last = listInt.GetElem(); sprintf(temp,"%d",last); } // ==> 7,12,13,14,6,5 list += elem; //==> AddLast listDest = listSource; //==> Copy d'une liste dans une autre listDest += listSource; //==> Ajout d'une liste dans une autre elem = list[12]; //==> Accede a l'elem 12 (13) vu que ca commance a 0 elem = list[-1]; //==> Accede au dernier elem list = 0; //==> Se place a l'element indexé 0 list ++; //==> Se place a l'element suivant; list --; //==> Se place a l'element d'avant; lisr += 2; //==> Se place a 2 element plus loin lisr -= 2; //==> Se place a 2 element avant
Definition at line 81 of file MyList.h.
|
|
|
|
|
|
|
|
|
|
|
Efface un elem de list et sa valeur associé.
Definition at line 117 of file MyList.h. Referenced by MyListItem< ParsingWord >::~MyListItem(). |
|
|
|
|
|
Cree un element de la liste avec comme valuer l'element lui meme alloue et recopié de l'original.
Definition at line 125 of file MyList.h. Referenced by MyListItem< ParsingWord >::MyListItem(), and MyListItem< ParsingWord >::New(). |
|
Definition at line 100 of file MyList.h. Referenced by MyListItem< ParsingWord >::MyListItem(), and MyListIterator< ParsingWord >::Supr(). |
|
Definition at line 85 of file MyList.h. Referenced by MyListIterator< ParsingWord >::AddAfter(), MyListIterator< ParsingWord >::AddBefore(), Primitive::ReOrderForBlending(), MyListIterator< ParsingWord >::Supr(), MyTreeNode< Face >::SuprChilds(), and MyListIterator< ParsingWord >::SuprLast(). |
|
Definition at line 85 of file MyList.h. Referenced by MyListIterator< ParsingWord >::AddAfter(), MyListIterator< ParsingWord >::AddBefore(), MyListIterator< ParsingWord >::AddLast(), and MyListIterator< ParsingWord >::Supr(). |
|
Definition at line 84 of file MyList.h. Referenced by Primitive::ReOrderForBlending(), and MyTreeNode< Face >::SuprChilds(). |
|
|