MarSTDv2004: CList.h File Reference
From MarSTDv2004
Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members
CList.h File Reference
Detailed Description
: DLL helper macros.Definition in file CList.h.
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Defines | |
| #define | DLLIST_UNLINK_SELF() |
| Macro for DLL item to unlink itself. | |
| #define | DLLIST_LINK_HEAD(_head, _tail, _item, _count) |
| Macro for DLL owner to link a DLL item as head. | |
| #define | DLLIST_LINK_TAIL(_head, _tail, _item, _count) |
| Macro for DLL owner to link a DLL item as tail. | |
| #define | DLLIST_UNLINK(_head, _tail, _item, _count) |
| Macro for a DLL owner to unlink a DLL item. | |
| #define | DLLIST_REMOVE(_item) |
| Macro for a DLL owner to remove a DLL item. | |
| #define | DLLIST_CLEAR(_head) |
| Macro for a DLL owner to clear a DLL. | |
Define Documentation
|
) |
|
Value: { \
if (prev) \
prev->next = next; \
if (next) \
next->prev = prev; \
prev = 0; \
next = 0; \
return this; \
}
|
|
|
Value: { \
_item->prev = 0; \
_item->next = _head; \
if (_head) \
_head->prev = _item; \
_head = _item; \
if (!_tail) \
_tail = _head; \
_count++; \
}
|
|
|
Value: { \
_item->prev = _tail; \
_item->next = 0; \
if (_tail) \
_tail->next = _item; \
_tail = _item; \
if (!_head) \
_head = _tail; \
_count++; \
}
|
|
|
Value: { \
if (_item == _head) \
_head = _item->next; \
if (_item == _tail) \
_tail = _item->prev; \
_item->unlink(); \
_count--; \
}
|
|
|
Value: { \
delete unlink(_item); \
}
|
|
|
Value: { \
while (_head) \
remove(_head); \
}
|
Generated on Tue Feb 8 21:59:14 2005 for MarSTDv2004 by