![]() |
L4Re Operating System Framework
Interface and Usage Documentation
|
Basic list item. More...
#include <list>
Data Structures | |
| class | Iter |
| Iterator for a list of ListItem-s. More... | |
| class | T_iter |
| Iterator for derived classes from ListItem. More... | |
Public Member Functions | |
| List_item * | get_prev_item () const noexcept |
| Get previous item. | |
| List_item * | get_next_item () const noexcept |
| Get next item. | |
| void | insert_prev_item (List_item *p) noexcept |
| Insert item p before this item. | |
| void | insert_next_item (List_item *p) noexcept |
| Insert item p after this item. | |
| void | remove_me () noexcept |
| Remove this item from the list. | |
Static Public Member Functions | |
| template<typename C, typename N> | |
| static C * | push_back (C *head, N *p) noexcept |
| Append item to a list. | |
| template<typename C, typename N> | |
| static C * | push_front (C *head, N *p) noexcept |
| Prepend item to a list. | |
| template<typename C, typename N> | |
| static C * | remove (C *head, N *p) noexcept |
| Remove item from a list. | |
Basic list item.
Basic item that can be member of a doubly linked, cyclic list.
|
inlinestaticnoexcept |
Append item to a list.
Convenience function for empty-head corner case.
| head | Pointer to the current list head. |
| p | Pointer to new item. |
Definition at line 237 of file list.
Referenced by cxx::List< D, Alloc >::push_back().
|
inlinestaticnoexcept |
Prepend item to a list.
Convenience function for empty-head corner case.
| head | pointer to the current list head. |
| p | pointer to new item. |
Definition at line 248 of file list.
Referenced by cxx::List< D, Alloc >::push_front().
|
inlinestaticnoexcept |
Remove item from a list.
Convenience function for remove-head corner case.
| head | pointer to the current list head. |
| p | pointer to the item to remove. |
Definition at line 258 of file list.
Referenced by cxx::List< D, Alloc >::remove().