vdr  1.7.31
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
cHashBase Class Reference

#include <tools.h>

Public Member Functions

virtual ~cHashBase ()
void Add (cListObject *Object, unsigned int Id)
void Del (cListObject *Object, unsigned int Id)
void Clear (void)
cListObjectGet (unsigned int Id) const
cList< cHashObject > * GetList (unsigned int Id) const
virtual ~cHashBase ()
void Add (cListObject *Object, unsigned int Id)
void Del (cListObject *Object, unsigned int Id)
void Clear (void)
cListObjectGet (unsigned int Id) const
cList< cHashObject > * GetList (unsigned int Id) const

Protected Member Functions

 cHashBase (int Size)
 cHashBase (int Size)

Private Member Functions

unsigned int hashfn (unsigned int Id) const
unsigned int hashfn (unsigned int Id) const

Private Attributes

cList< cHashObject > ** hashTable
int size

Detailed Description

Definition at line 602 of file include/vdr/tools.h.

Constructor & Destructor Documentation

cHashBase::cHashBase ( int  Size)
protected

Definition at line 2032 of file tools.c.

References hashTable, and size.

cHashBase::~cHashBase ( void  )
virtual

Definition at line 2038 of file tools.c.

References Clear(), and hashTable.

cHashBase::cHashBase ( int  Size)
protected
virtual cHashBase::~cHashBase ( )
virtual

Member Function Documentation

void cHashBase::Add ( cListObject Object,
unsigned int  Id 
)

Definition at line 2044 of file tools.c.

References cListBase::Add(), hashfn(), and hashTable.

Referenced by cChannels::HashChannel(), and cSchedule::HashEvent().

void cHashBase::Add ( cListObject Object,
unsigned int  Id 
)
void cHashBase::Clear ( void  )

Definition at line 2065 of file tools.c.

References hashTable, and size.

Referenced by cChannels::ReNumber(), and ~cHashBase().

void cHashBase::Clear ( void  )
void cHashBase::Del ( cListObject Object,
unsigned int  Id 
)
void cHashBase::Del ( cListObject Object,
unsigned int  Id 
)
cListObject * cHashBase::Get ( unsigned int  Id) const
cListObject* cHashBase::Get ( unsigned int  Id) const
cList<cHashObject>* cHashBase::GetList ( unsigned int  Id) const
cList< cHashObject > * cHashBase::GetList ( unsigned int  Id) const

Definition at line 2085 of file tools.c.

References hashfn(), and hashTable.

Referenced by cChannels::GetByChannelID(), and cChannels::GetByServiceID().

unsigned int cHashBase::hashfn ( unsigned int  Id) const
inlineprivate

Definition at line 606 of file include/vdr/tools.h.

Referenced by Add(), Del(), Get(), and GetList().

unsigned int cHashBase::hashfn ( unsigned int  Id) const
inlineprivate

Definition at line 606 of file tools.h.

Member Data Documentation

cList< cHashObject > ** cHashBase::hashTable
private

Definition at line 604 of file include/vdr/tools.h.

Referenced by Add(), cHashBase(), Clear(), Del(), Get(), GetList(), and ~cHashBase().

int cHashBase::size
private

Definition at line 605 of file include/vdr/tools.h.

Referenced by cHashBase(), and Clear().


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