24#ifndef __KWORD_LISTEFORMAT_H__
25#define __KWORD_LISTEFORMAT_H__
50 FormatElt(FormatElt * eltt) {
51 _format = eltt->getFormat();
52 _next = eltt->getNext();
68 Format* getFormat () const { return _format; }
69 FormatElt* getNext () const { return _next; }
78 void setNext (FormatElt*);
87 FormatElt& operator = ( const FormatElt &);
121 virtual ~ListeFormat();
128 Format* getFirst () const { return _first->getFormat(); }
129 FormatElt* getFirstElt() const { return _first; }
130 Format* getLast () const { return _end->getFormat(); }
131 bool isVide () const { return (_size == 0); }
132 int getSize () const { return _size; }
171 FormatIter() { _courant = 0; }
173 FormatIter(ListeFormat& l) { _courant = l.getFirstElt(); }
175 FormatIter(ListeFormat*);
183 virtual ~FormatIter() { }
191 Format* getCourant() const { return _courant->getFormat(); }
192 bool isTerminate() const { return (_courant == 0); }
199 void next () { _courant = _courant->getNext(); }
200 void setList(ListeFormat* l) { _courant = l->getFirstElt(); }
|