2 #include "oxygine-include.h" 40 void insert_after(T& child, T& after)
42 OX_ASSERT(after->_list ==
this);
46 after->_next->_prev = child;
50 child->_next = after->_next;
58 void insert_before(T& child, T& before)
63 before->_prev->_next = child;
67 child->_prev = before->_prev;
68 child->_next = before;
69 before->_prev = child;
96 void prepend(T& child)
102 _first->_prev = child;
103 child->_next = _first;
131 OX_ASSERT(v->_prev == p);
135 OX_ASSERT(p == _last);
146 void remove(T& child)
148 OX_ASSERT(child->_list ==
this);
153 OX_ASSERT(child->_next->_prev == child);
154 child->_next->_prev = child->_prev;
158 OX_ASSERT(child == _last);
159 _last = child->_prev;
165 OX_ASSERT(child->_prev->_next == child);
166 child->_prev->_next = child->_next;
170 OX_ASSERT(child == _first);
171 _first = child->_next;
190 T& getNextSibling() {
return _next;}
191 T& getPrevSibling() {
return _prev;}
Definition: intrusive_list.h:183
Definition: intrusive_list.h:6
–oxgl-end–!
Definition: Actor.h:14