Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Intrusive doubly-linked list implementation class. Handles List infrastructure independent of templated type for List. Ownership handling is left to the main List class. More...
#include <list_impl.h>
Public Member Functions | |
size_t | size () const |
Get number of nodes in list. More... | |
bool | contains (const ListData *node) const |
Check if node belongs to list. More... | |
ListData * | head () |
Get list head (non-node node). More... | |
ListData * | front () const |
Get first list node. More... | |
ListData * | back () const |
Get last list node. More... | |
ListData * | nextof (ListData *node) const |
Get list node next to given one. More... | |
ListData * | prevof (ListData *node) const |
Get list node previous to given one. More... | |
ListData * | pop_front () |
Remove first node and return. More... | |
ListData * | pop_back () |
Remove last node and return. More... | |
void | insert (ListData *node, ListData *before) |
Insert node into list. More... | |
void | remove (ListData *node) |
Remove node from list. More... | |
Intrusive doubly-linked list implementation class. Handles List infrastructure independent of templated type for List. Ownership handling is left to the main List class.
Definition at line 25 of file list_impl.h.
ListData* roc::core::ListImpl::back | ( | ) | const |
Get last list node.
bool roc::core::ListImpl::contains | ( | const ListData * | node | ) | const |
Check if node belongs to list.
ListData* roc::core::ListImpl::front | ( | ) | const |
Get first list node.
ListData* roc::core::ListImpl::head | ( | ) |
Get list head (non-node node).
ListData* roc::core::ListImpl::pop_back | ( | ) |
Remove last node and return.
ListData* roc::core::ListImpl::pop_front | ( | ) |
Remove first node and return.
void roc::core::ListImpl::remove | ( | ListData * | node | ) |
Remove node from list.
size_t roc::core::ListImpl::size | ( | ) | const |
Get number of nodes in list.