UPnPsdk 0.1
Universal Plug and Play +, Software Development Kit
 
Loading...
Searching...
No Matches
list.cpp File Reference

Trivial list management interface, patterned on std::list. More...

#include <list.hpp>
+ Include dependency graph for list.cpp:

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()
 

Detailed Description

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.

Function Documentation

◆ UpnpListInit()

void UpnpListInit ( UpnpListHead list)

Initialize empty list.

Definition at line 44 of file list.cpp.

+ Here is the caller graph for this function:

◆ UpnpListBegin()

UpnpListIter UpnpListBegin ( UpnpListHead list)

Return iterator pointing to the first list element, or UpnpListEnd(list) if the list is empty.

Definition at line 51 of file list.cpp.

+ Here is the caller graph for this function:

◆ UpnpListEnd()

UpnpListIter UpnpListEnd ( UpnpListHead list)

Return end of list sentinel iterator (not an element)

Definition at line 58 of file list.cpp.

+ Here is the caller graph for this function:

◆ UpnpListNext()

UpnpListIter UpnpListNext ( UpnpListHead list,
UpnpListIter  pos 
)

Return iterator pointing to element after pos, or end()

Definition at line 60 of file list.cpp.

+ Here is the caller graph for this function:

◆ UpnpListInsert()

UpnpListIter UpnpListInsert ( UpnpListHead list,
UpnpListIter  pos,
UpnpListHead elt 
)

Insert element before pos, returns iterator pointing to inserted element.

Definition at line 68 of file list.cpp.

+ Here is the caller graph for this function:

◆ UpnpListErase()

UpnpListIter UpnpListErase ( UpnpListHead list,
UpnpListIter  pos 
)

Erase element at pos, return next one, or end()

Definition at line 80 of file list.cpp.

+ Here is the caller graph for this function: