42 #include "qcollection.h" 55 QCollection::Item
getData() {
return data; }
57 QCollection::Item data;
60 QLNode( QCollection::Item d ) { data = d; }
75 #ifndef QT_NO_DATASTREAM 85 bool operator==(
const QGList& )
const;
87 void inSort( QCollection::Item );
88 void append( QCollection::Item );
89 bool insertAt( uint index, QCollection::Item );
90 void relinkNode(
QLNode * );
91 bool removeNode(
QLNode * );
92 bool remove( QCollection::Item = 0 );
93 bool removeRef( QCollection::Item = 0 );
96 bool removeAt( uint index );
97 QCollection::Item takeNode(
QLNode * );
98 QCollection::Item take();
99 QCollection::Item takeAt( uint index );
100 QCollection::Item takeFirst();
101 QCollection::Item takeLast();
106 int findRef( QCollection::Item,
bool = TRUE );
107 int find( QCollection::Item,
bool = TRUE );
109 uint containsRef( QCollection::Item )
const;
110 uint contains( QCollection::Item )
const;
112 QCollection::Item at( uint index );
114 QLNode *currentNode()
const;
116 QCollection::Item
get()
const;
118 QCollection::Item cfirst()
const;
119 QCollection::Item clast()
const;
120 QCollection::Item first();
121 QCollection::Item last();
122 QCollection::Item next();
123 QCollection::Item prev();
127 virtual int compareItems( QCollection::Item, QCollection::Item );
129 #ifndef QT_NO_DATASTREAM 134 void prepend( QCollection::Item );
136 void heapSortPushDown( QCollection::Item* heap,
int first,
int last );
155 inline bool QGList::removeFirst()
161 inline bool QGList::removeLast()
167 inline int QGList::at()
const 172 inline QCollection::Item QGList::at( uint index )
174 QLNode *n = locate( index );
175 return n ? n->data : 0;
178 inline QLNode *QGList::currentNode()
const 183 inline QCollection::Item QGList::get()
const 185 return curNode ? curNode->data : 0;
188 inline QCollection::Item QGList::cfirst()
const 190 return firstNode ? firstNode->data : 0;
193 inline QCollection::Item QGList::clast()
const 195 return lastNode ? lastNode->data : 0;
203 #ifndef QT_NO_DATASTREAM 221 bool atFirst()
const;
223 QCollection::Item toFirst();
224 QCollection::Item toLast();
226 QCollection::Item
get()
const;
227 QCollection::Item operator()();
228 QCollection::Item operator++();
229 QCollection::Item operator+=(uint);
230 QCollection::Item operator--();
231 QCollection::Item operator-=(uint);
241 inline bool QGListIterator::atFirst()
const 243 return curNode == list->firstNode;
246 inline bool QGListIterator::atLast()
const 248 return curNode == list->lastNode;
251 inline QCollection::Item QGListIterator::get()
const 253 return curNode ? curNode->data : 0;
QCollection::Item getData()
Definition: qglist.h:55
The QGList class is an internal class for implementing Qt collection classes.
Definition: qglist.h:68
The QCollection class is the base class of all Qt collections.
Definition: qcollection.h:51
The QGVector class is an internal class for implementing Qt collection classes.
Definition: qgvector.h:46
uint count() const
Definition: qglist.h:150
virtual uint count() const =0
virtual int compareItems(Item, Item)
Definition: qgvector.cpp:110
The QDataStream class provides serialization of binary data to a QIODevice.
Definition: qdatastream.h:47
The QLNode class is an internal class for the QList template collection.
Definition: qglist.h:50
The QGListIterator class is an internal class for implementing QListIterator.
Definition: qglist.h:212