Template for typesafe basic object fifo container.
More...
#include <linked.h>
Public Member Functions |
void | add (T *object) |
| Add an object onto the object fifo.
|
| objfifo () |
| Create a new object stack.
|
T * | pop (void) |
| Pull (pop) an object from the object stack.
|
T * | pull (void) |
| Pull an object from the object stack.
|
void | push (T *object) |
| Push an object onto the object fifo.
|
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.
|
Detailed Description
template<class T>
class ucommon::objfifo< T >
Template for typesafe basic object fifo container.
The object type, T, that is contained in the fifo must be derived from OrderedObject or LinkedObject.
- Author
- David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org
Definition at line 1189 of file linked.h.
Member Function Documentation
Add an object onto the object fifo.
- Parameters
-
object | of specified type to push. |
Definition at line 1208 of file linked.h.
Pull (pop) an object from the object stack.
- Returns
- object of specified type or NULL if empty.
Definition at line 1222 of file linked.h.
Pull an object from the object stack.
- Returns
- object of specified type or NULL if empty.
Definition at line 1215 of file linked.h.
Push an object onto the object fifo.
- Parameters
-
object | of specified type to push. |
Definition at line 1201 of file linked.h.
The documentation for this class was generated from the following file: