MarSTDv2004: CList.h File Reference

MarSTDv2004

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

 
#define DLLIST_UNLINK_SELF
 ) 
 

Value:

{ \
                if (prev) \
                        prev->next = next; \
                if (next) \
                        next->prev = prev; \
                prev = 0; \
                next = 0; \
                return this; \
        }

Definition at line 20 of file CList.h.

#define DLLIST_LINK_HEAD _head,
_tail,
_item,
_count   ) 
 

Value:

{ \
                _item->prev = 0; \
                _item->next = _head; \
                if (_head) \
                        _head->prev = _item; \
                _head = _item; \
                if (!_tail) \
                        _tail = _head; \
                _count++; \
        }

Definition at line 40 of file CList.h.

#define DLLIST_LINK_TAIL _head,
_tail,
_item,
_count   ) 
 

Value:

{ \
                _item->prev = _tail; \
                _item->next = 0; \
                if (_tail) \
                        _tail->next = _item; \
                _tail = _item; \
                if (!_head) \
                        _head = _tail; \
                _count++; \
        }

Definition at line 62 of file CList.h.

#define DLLIST_UNLINK _head,
_tail,
_item,
_count   ) 
 

Value:

{ \
                if (_item == _head) \
                        _head = _item->next; \
                if (_item == _tail) \
                        _tail = _item->prev; \
                _item->unlink(); \
                _count--; \
        }

Definition at line 84 of file CList.h.

#define DLLIST_REMOVE _item   ) 
 

Value:

{ \
                delete unlink(_item); \
        }

Definition at line 102 of file CList.h.

#define DLLIST_CLEAR _head   ) 
 

Value:

{ \
                while (_head) \
                        remove(_head); \
        }

Definition at line 110 of file CList.h.


Generated on Tue Feb 8 21:59:14 2005 for MarSTDv2004 by  doxygen 1.4.1