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)
 

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 wvlink.h.

Constructor & Destructor Documentation

◆ WvLink() [1/2]

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

Definition at line 34 of file wvlink.h.

◆ WvLink() [2/2]

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

Definition at line 12 of file wvlinklist.cc.

Member Function Documentation

◆ get_autofree()

bool WvLink::get_autofree ( )
inline

Definition at line 41 of file wvlink.h.

◆ set_autofree()

void WvLink::set_autofree ( bool  _autofree)
inline

Definition at line 46 of file wvlink.h.

◆ unlink()

void WvLink::unlink ( WvLink prev)
inline

Definition at line 51 of file wvlink.h.

Member Data Documentation

◆ data

void* WvLink::data

Definition at line 26 of file wvlink.h.

◆ next

WvLink* WvLink::next

Definition at line 27 of file wvlink.h.

◆ id

const char* WvLink::id

Definition at line 28 of file wvlink.h.


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