version 1.6, 2001/07/16 22:28:07
|
version 1.6.2.1, 2001/08/05 19:34:11
|
|
|
// unlink this node from whichever list it is on | // unlink this node from whichever list it is on |
inline void unlink( void ) { _prev->_next = _next; _next->_prev = _prev; } | inline void unlink( void ) { _prev->_next = _next; _next->_prev = _prev; } |
// insert this node into list owned by head | // insert this node into list owned by head |
inline void insert(slp2_list & head) { _prev = head; |
inline void insert(slp2_list & head) |
|
{ |
|
_prev = &head; |
_next = head._next; | _next = head._next; |
head._next->_prev = this; | head._next->_prev = this; |
head._next = this; | head._next = this; |
head._count++; } |
head._count++; |
|
} |
public: | public: |
slp2_list(Boolean head = true) : _rep(NULL), _isHead(head), _count(0) { _next = this; _prev = this; _cur = this;} | slp2_list(Boolean head = true) : _rep(NULL), _isHead(head), _count(0) { _next = this; _prev = this; _cur = this;} |
~slp2_list() { empty_list() ; } | ~slp2_list() { empty_list() ; } |