![]() |
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 <roc_core/list_impl.h>

Public Member Functions | |
| size_t | size () const |
| Get number of nodes in list. | |
| bool | contains (const ListData *node) const |
| Check if node belongs to list. | |
| ListData * | head () |
| Get list head (non-node node). | |
| ListData * | front () const |
| Get first list node. | |
| ListData * | back () const |
| Get last list node. | |
| ListData * | nextof (ListData *node) const |
| Get list node next to given one. | |
| ListData * | prevof (ListData *node) const |
| Get list node previous to given one. | |
| ListData * | pop_front () |
| Remove first node and return. | |
| ListData * | pop_back () |
| Remove last node and return. | |
| void | insert (ListData *node, ListData *before) |
| Insert node into list. | |
| void | remove (ListData *node) |
| Remove node from list. | |
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.
| 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.
Get list node previous to given one.
| size_t roc::core::ListImpl::size | ( | ) | const |
Get number of nodes in list.