|
UCommon
|
A queue of double linked object. More...
#include <linked.h>


Public Member Functions | |
| void | add (DLinkedObject *object) |
| Add an object to the end of the queue. | |
| ObjectQueue () | |
| Create an empty object queue. | |
| DLinkedObject * | pop (void) |
| Pop an object from the end of the queue. | |
| DLinkedObject * | pull (void) |
| Pull an object from the front of the queue. | |
| void | push (DLinkedObject *object) |
| Push an object to the front of the queue. | |
Public Member Functions inherited from ucommon::OrderedIndex | |
| void | add (OrderedObject *ordered) |
| Add an object into the ordered index. | |
| LinkedObject * | begin (void) |
| Return first object in list for iterators. | |
| unsigned | count (void) |
| Count of objects this list manages. | |
| LinkedObject * | end (void) |
| Return last object in list for iterators. | |
| LinkedObject * | find (unsigned offset) |
| Find a specific member in the ordered list. | |
| LinkedObject * | get (void) |
| Get (pull) object off the list. | |
| LinkedObject * | getIndexed (unsigned index) |
| Get an indexed member from the ordered index. | |
| LinkedObject ** | index (void) |
| Return a pointer to the head of the list. | |
| virtual void | lock_index (void) |
| Used to synchronize lists managed by multiple threads. | |
| LinkedObject * | operator* () |
| Return head object pointer. | |
| void | operator*= (OrderedObject *object) |
| Add object to our list. | |
| OrderedIndex () | |
| Create and initialize an empty index. | |
| void | purge (void) |
| Purge the linked list and then set the index to empty. | |
| void | reset (void) |
| Reset linked list to empty without purging. | |
| virtual void | unlock_index (void) |
| Used to synchronize lists managed by multiple threads. | |
| virtual | ~OrderedIndex () |
| Destroy index. | |
Additional Inherited Members | |
Protected Attributes inherited from ucommon::OrderedIndex | |
| OrderedObject * | head |
| OrderedObject * | tail |
A queue of double linked object.
This uses the linkedlist class to form a basic queue of objects.
| void ucommon::ObjectQueue::add | ( | DLinkedObject * | object | ) |
Add an object to the end of the queue.
| object | to add. |
| DLinkedObject* ucommon::ObjectQueue::pop | ( | void | ) |
Pop an object from the end of the queue.
Reimplemented in ucommon::objqueue< T >.
| DLinkedObject* ucommon::ObjectQueue::pull | ( | void | ) |
Pull an object from the front of the queue.
Reimplemented in ucommon::objqueue< T >.
| void ucommon::ObjectQueue::push | ( | DLinkedObject * | object | ) |
Push an object to the front of the queue.
| object | to push. |
1.8.1.1