49 template <
class T, const
int deleteOnRemove = 0>
119 void InsertAfter( ListItem *where, T &val )
121 ListItem *newItem =
new ListItem(val);
127 _tail = _head = newItem;
135 newItem->Prev(where);
136 newItem->Next(where->Next());
138 where->Next()->Prev(newItem);
139 where->Next(newItem);
152 InsertAfter(_tail, val);
155 void InsertBefore( ListItem *where, T &val )
157 ListItem *newItem =
new ListItem(val);
163 _tail = _head = newItem;
171 newItem->Next(where);
172 newItem->Prev(where->Prev());
174 where->Prev()->Next(newItem);
175 where->Prev(newItem);
191 void Remove(ListItem *where)
193 if (!where || _count <= 0)
198 _head = where->Next();
203 _tail = where->Prev();
207 where->Prev()->Next(where->Next());
209 where->Next()->Prev(where->Prev());
A file for all GL Studio files to include.
Definition: bmpimage.h:46