Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

WvLink Class Reference

#include <wvlink.h>

Collaboration diagram for WvLink:

[legend]
List of all members.

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 auto_free 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.

Public Member Functions

 WvLink (void *_data, bool _auto_free, char *_id=NULL)
 WvLink (void *_data, WvLink *prev, WvLink *&tail, bool _auto_free, char *_id=NULL)
void unlink (WvLink *prev)

Public Attributes

void * data
WvLinknext
char * id
unsigned auto_free: 1


Constructor & Destructor Documentation

WvLink::WvLink void *  _data,
bool  _auto_free,
char *  _id = NULL
[inline]
 

Definition at line 31 of file wvlink.h.

References auto_free, data, id, and next.

WvLink::WvLink void *  _data,
WvLink prev,
WvLink *&  tail,
bool  _auto_free,
char *  _id = NULL
 

Definition at line 12 of file wvlinklist.cc.

References auto_free, data, id, and next.


Member Function Documentation

void WvLink::unlink WvLink prev  )  [inline]
 

Definition at line 38 of file wvlink.h.

References next.

Referenced by WvList< UniGenMount >::unlink_after().


Member Data Documentation

unsigned WvLink::auto_free
 

Definition at line 29 of file wvlink.h.

Referenced by WvList< UniGenMount >::unlink_after(), and WvLink().

void* WvLink::data
 

Definition at line 26 of file wvlink.h.

Referenced by WvListBase::IterBase::find(), WvList< UniGenMount >::first(), WvHashTableBase::genfind(), WvList< UniGenMount >::last(), WvConfEmu::Iter::next(), WvConfigSectionEmu::Iter::next(), WvHashTableBase::prevlink(), WvList< T >::Iter::ptr(), WvHashTable< T, K, Accessor, Comparator >::Iter::ptr(), WvConfEmu::Iter::rewind(), WvConfigSectionEmu::Iter::rewind(), WvList< UniGenMount >::unlink_after(), WvListBase::IterBase::vptr(), WvHashTableBase::IterBase::vptr(), WvConfigSectionEmu::Iter::vptr(), and WvLink().

char* WvLink::id
 

Definition at line 28 of file wvlink.h.

Referenced by WvLink().

WvLink* WvLink::next
 

Definition at line 27 of file wvlink.h.

Referenced by WvListBase::count(), WvList< UniGenMount >::first(), WvHashTableBase::genfind(), WvHashTable< T, K, Accessor, Comparator >::getlink(), WvListBase::isempty(), WvListBase::IterBase::next(), WvHashTableBase::IterBase::next(), WvHashTableBase::prevlink(), WvHashTable< T, K, Accessor, Comparator >::remove(), WvListBase::reverse(), WvList< T >::Iter::unlink(), unlink(), WvList< UniGenMount >::unlink_after(), WvLink(), and WvList< UniGenMount >::zap().


The documentation for this class was generated from the following files:
Generated on Sat Feb 21 21:06:32 2004 for WvStreams by doxygen 1.3.5