WvStreams
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | Static Protected Attributes | List of all members
WvSorter< _type_, _list_, _iter_ > Class Template Reference
Inheritance diagram for WvSorter< _type_, _list_, _iter_ >:
Inheritance graph
[legend]

Public Types

typedef int() RealCompareFunc(const _type_ *a, const _type_ *b)
 
typedef int() RealCompareFunc(const _type_ *a, const _type_ *b)
 
typedef int() CompareFunc(const void *a, const void *b)
 
typedef int() CompareFunc(const void *a, const void *b)
 

Public Member Functions

 WvSorter (_list_ &_list, RealCompareFunc *_cmp)
 
_type_ * ptr () const
 
 WvIterStuff (_type_)
 
void rewind ()
 
 WvSorter (_list_ &_list, RealCompareFunc *_cmp)
 
_type_ * ptr () const
 
 WvIterStuff (_type_)
 
void rewind ()
 
bool next ()
 
bool next ()
 
bool cur ()
 
bool cur ()
 

Public Attributes

RealCompareFunc * cmp
 
void * list
 
void ** array
 
void ** lptr
 

Protected Member Functions

template<class _list_ , class _iter_ >
void rewind (CompareFunc *cmp)
 

Static Protected Member Functions

static int magic_compare (const void *_a, const void *_b)
 
static int magic_compare (const void *_a, const void *_b)
 

Static Protected Attributes

static CompareFunc * actual_compare
 

Detailed Description

template<class _type_, class _list_, class _iter_>
class WvSorter< _type_, _list_, _iter_ >

Definition at line 56 of file debian/libwvstreams-dev/usr/include/wvstreams/wvsorter.h.

Member Typedef Documentation

◆ RealCompareFunc [1/2]

template<class _type_ , class _list_ , class _iter_ >
typedef int() WvSorter< _type_, _list_, _iter_ >::RealCompareFunc(const _type_ *a, const _type_ *b)

◆ RealCompareFunc [2/2]

template<class _type_ , class _list_ , class _iter_ >
typedef int() WvSorter< _type_, _list_, _iter_ >::RealCompareFunc(const _type_ *a, const _type_ *b)

Definition at line 59 of file include/wvsorter.h.

◆ CompareFunc [1/2]

typedef int() WvSorterBase::CompareFunc(const void *a, const void *b)
inherited

◆ CompareFunc [2/2]

typedef int() WvSorterBase::CompareFunc(const void *a, const void *b)
inherited

Definition at line 26 of file include/wvsorter.h.

Constructor & Destructor Documentation

◆ WvSorter() [1/2]

template<class _type_ , class _list_ , class _iter_ >
WvSorter< _type_, _list_, _iter_ >::WvSorter ( _list_ &  _list,
RealCompareFunc *  _cmp 
)
inline

◆ WvSorter() [2/2]

template<class _type_ , class _list_ , class _iter_ >
WvSorter< _type_, _list_, _iter_ >::WvSorter ( _list_ &  _list,
RealCompareFunc *  _cmp 
)
inline

Definition at line 62 of file include/wvsorter.h.

Member Function Documentation

◆ ptr() [1/2]

template<class _type_ , class _list_ , class _iter_ >
_type_ * WvSorter< _type_, _list_, _iter_ >::ptr ( ) const
inline

◆ rewind() [1/3]

template<class _type_ , class _list_ , class _iter_ >
void WvSorter< _type_, _list_, _iter_ >::rewind ( )
inline

◆ ptr() [2/2]

template<class _type_ , class _list_ , class _iter_ >
_type_ * WvSorter< _type_, _list_, _iter_ >::ptr ( ) const
inline

Definition at line 65 of file include/wvsorter.h.

◆ rewind() [2/3]

template<class _type_ , class _list_ , class _iter_ >
void WvSorter< _type_, _list_, _iter_ >::rewind ( )
inline

Definition at line 71 of file include/wvsorter.h.

◆ next() [1/2]

bool WvSorterBase::next ( )
inlineinherited

◆ next() [2/2]

bool WvSorterBase::next ( )
inlineinherited

Definition at line 36 of file include/wvsorter.h.

◆ cur() [1/2]

bool WvSorterBase::cur ( )
inlineinherited

◆ cur() [2/2]

bool WvSorterBase::cur ( )
inlineinherited

Definition at line 38 of file include/wvsorter.h.

◆ rewind() [3/3]

template<class _list_ , class _iter_ >
void WvSorterBase::rewind ( CompareFunc *  cmp)
protectedinherited

◆ magic_compare()

int WvSorterBase::magic_compare ( const void *  _a,
const void *  _b 
)
staticprotectedinherited

Definition at line 14 of file wvsorter.cc.

Member Data Documentation

◆ cmp

template<class _type_ , class _list_ , class _iter_ >
RealCompareFunc * WvSorter< _type_, _list_, _iter_ >::cmp

◆ list

void * WvSorterBase::list
inherited

◆ array

void ** WvSorterBase::array
inherited

◆ lptr

void ** WvSorterBase::lptr
inherited

◆ actual_compare

WvSorterBase::CompareFunc * WvSorterBase::actual_compare
staticprotectedinherited

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