22 #ifndef QDENGINE_QDCORE_QD_LIST_H 23 #define QDENGINE_QDCORE_QD_LIST_H 61 if (cnt != numElements)
62 ErrH.Abort(
"List", XERR_USER, code);
86 while ((p = first()) != 0) {
102 template <
class Type>
104 return firstElement ? firstElement->prev : 0;
107 template <
class Type>
110 ErrH.Abort(
"Element is already in list");
113 p->next = firstElement;
114 p->prev = firstElement->prev;
115 firstElement->prev = p;
125 template <
class Type>
127 if (!firstElement || firstElement == pointer) {
137 ErrH.Abort(
"Element is already in list");
140 p->prev = pointer->prev;
141 pointer->prev->next = p;
148 template <
class Type>
155 p->prev = firstElement->prev;
156 firstElement->prev->next = p;
157 firstElement->prev = p;
160 p->prev = firstElement = p;
166 template <
class Type>
172 p->next->prev = p->prev;
174 firstElement->prev = p->prev;
176 if (p != firstElement)
177 p->prev->next = p->next;
179 firstElement = p->next;
181 firstElement->prev = p->prev;
184 p->next = p->prev = 0;
189 template <
class Type>
202 #endif // QDENGINE_QDCORE_QD_LIST_H
Базовый класс для игровых ресурсов.
Definition: console.h:28