WvStreams
Public Member Functions | Public Attributes | List of all members
WvLink Class Reference

WvLink is one element of a WvList<T>. More...

#include <wvlink.h>

Public Member Functions

 WvLink (void *_data, bool _autofree, const char *_id=NULL)
 
 WvLink (void *_data, WvLink *prev, WvLink *&tail, bool _autofree, const char *_id=NULL)
 
bool get_autofree ()
 
void set_autofree (bool _autofree)
 
void unlink (WvLink *prev)
 
 WvLink (void *_data, bool _autofree, const char *_id=NULL)
 
 WvLink (void *_data, WvLink *prev, WvLink *&tail, bool _autofree, const char *_id=NULL)
 
bool get_autofree ()
 
void set_autofree (bool _autofree)
 
void unlink (WvLink *prev)
 

Public Attributes

void * data
 
WvLinknext
 
const char * id
 

Detailed Description

WvLink is one element of a WvList<T>.

Note that WvLink itself is untyped to minimize the amount of generated code. This means that WvLink cannot handle the autofree behaviour itself which would require static type information. Instead, it defers this behaviour to the template instantiation of WvList<T> that uses it.

Definition at line 23 of file debian/libwvstreams-dev/usr/include/wvstreams/wvlink.h.

Constructor & Destructor Documentation

◆ WvLink() [1/3]

WvLink::WvLink ( void *  _data,
bool  _autofree,
const char *  _id = NULL 
)
inline

◆ WvLink() [2/3]

WvLink::WvLink ( void *  _data,
WvLink prev,
WvLink *&  tail,
bool  _autofree,
const char *  _id = NULL 
)

Definition at line 12 of file wvlinklist.cc.

◆ WvLink() [3/3]

WvLink::WvLink ( void *  _data,
bool  _autofree,
const char *  _id = NULL 
)
inline

Definition at line 34 of file include/wvlink.h.

Member Function Documentation

◆ get_autofree() [1/2]

bool WvLink::get_autofree ( )
inline

◆ set_autofree() [1/2]

void WvLink::set_autofree ( bool  _autofree)
inline

◆ unlink() [1/2]

void WvLink::unlink ( WvLink prev)
inline

◆ get_autofree() [2/2]

bool WvLink::get_autofree ( )
inline

Definition at line 41 of file include/wvlink.h.

◆ set_autofree() [2/2]

void WvLink::set_autofree ( bool  _autofree)
inline

Definition at line 46 of file include/wvlink.h.

◆ unlink() [2/2]

void WvLink::unlink ( WvLink prev)
inline

Definition at line 51 of file include/wvlink.h.

Member Data Documentation

◆ data

void * WvLink::data

◆ next

WvLink * WvLink::next

◆ id

const char * WvLink::id

The documentation for this class was generated from the following files: