Trivial list management interface, patterned on std::list. More...
#include <list.hpp>
Go to the source code of this file.
Functions | |
void | UpnpListInit (UpnpListHead *list) |
Initialize empty list. | |
UpnpListIter | UpnpListBegin (UpnpListHead *list) |
Return iterator pointing to the first list element, or UpnpListEnd(list) if the list is empty. | |
UpnpListIter | UpnpListEnd (UpnpListHead *list) |
Return end of list sentinel iterator (not an element) | |
UpnpListIter | UpnpListNext (UpnpListHead *list, UpnpListIter pos) |
Return iterator pointing to element after pos, or end() | |
UpnpListIter | UpnpListInsert (UpnpListHead *list, UpnpListIter pos, UpnpListHead *elt) |
Insert element before pos, returns iterator pointing to inserted element. | |
UpnpListIter | UpnpListErase (UpnpListHead *list, UpnpListIter pos) |
Erase element at pos, return next one, or end() | |
Trivial list management interface, patterned on std::list.
It aims more at being familiar than at being minimal. The implementation does not perform any allocation or deallocation.
Definition in file list.cpp.
void UpnpListInit | ( | UpnpListHead * | list | ) |
UpnpListIter UpnpListBegin | ( | UpnpListHead * | list | ) |
UpnpListIter UpnpListEnd | ( | UpnpListHead * | list | ) |
UpnpListIter UpnpListNext | ( | UpnpListHead * | list, |
UpnpListIter | pos | ||
) |
UpnpListIter UpnpListInsert | ( | UpnpListHead * | list, |
UpnpListIter | pos, | ||
UpnpListHead * | elt | ||
) |
UpnpListIter UpnpListErase | ( | UpnpListHead * | list, |
UpnpListIter | pos | ||
) |