WvStreams
WvSorterBase Class Reference
Inheritance diagram for WvSorterBase:

Public Types

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

Public Member Functions

 WvSorterBase (void *_list)
bool next ()
bool cur ()
 WvSorterBase (void *_list)
bool next ()
bool cur ()

Public Attributes

void * list
void ** array
void ** lptr

Protected Member Functions

template<class _list_, class _iter_>
void rewind (CompareFunc *cmp)
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

Member Typedef Documentation

◆ CompareFunc [1/2]

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

◆ CompareFunc [2/2]

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

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

Constructor & Destructor Documentation

◆ WvSorterBase() [1/2]

WvSorterBase::WvSorterBase ( void * _list)
inline

◆ ~WvSorterBase() [1/2]

WvSorterBase::~WvSorterBase ( )
inline

◆ WvSorterBase() [2/2]

WvSorterBase::WvSorterBase ( void * _list)
inline

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

◆ ~WvSorterBase() [2/2]

WvSorterBase::~WvSorterBase ( )
inline

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

Member Function Documentation

◆ next() [1/2]

bool WvSorterBase::next ( )
inline

◆ cur() [1/2]

bool WvSorterBase::cur ( )
inline

◆ rewind()

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

◆ magic_compare()

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

Definition at line 14 of file wvsorter.cc.

◆ next() [2/2]

bool WvSorterBase::next ( )
inline

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

◆ cur() [2/2]

bool WvSorterBase::cur ( )
inline

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

Member Data Documentation

◆ list

void * WvSorterBase::list

◆ array

void ** WvSorterBase::array

◆ lptr

void ** WvSorterBase::lptr

◆ actual_compare

WvSorterBase::CompareFunc * WvSorterBase::actual_compare
staticprotected

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