cHashBase Class Reference

#include <tools.h>

Inheritance diagram for cHashBase:

Inheritance graph
[legend]
Collaboration diagram for cHashBase:

Collaboration graph
[legend]

List of all members.

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

Protected Member Functions

 cHashBase (int Size)

Private Member Functions

unsigned int hashfn (unsigned int Id) const

Private Attributes

cList< cHashObject > ** hashTable
int size


Detailed Description

Definition at line 333 of file tools.h.


Constructor & Destructor Documentation

cHashBase::cHashBase ( int  Size  )  [protected]

Definition at line 1490 of file tools.c.

References hashTable, and size.

cHashBase::~cHashBase ( void   )  [virtual]

Definition at line 1496 of file tools.c.

References Clear(), and hashTable.

Here is the call graph for this function:


Member Function Documentation

unsigned int cHashBase::hashfn ( unsigned int  Id  )  const [inline, private]

Definition at line 337 of file tools.h.

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

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

Definition at line 1502 of file tools.c.

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

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

Here is the call graph for this function:

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

Definition at line 1510 of file tools.c.

References cListBase::Del(), cList< T >::First(), hashfn(), hashTable, and cList< T >::Next().

Referenced by cChannels::UnhashChannel(), and cSchedule::UnhashEvent().

Here is the call graph for this function:

void cHashBase::Clear ( void   ) 

Definition at line 1523 of file tools.c.

References hashTable, and size.

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

cListObject * cHashBase::Get ( unsigned int  Id  )  const

Reimplemented in cHash< T >, cHash< cEvent >, and cHash< cChannel >.

Definition at line 1531 of file tools.c.

References cList< T >::First(), hashfn(), hashTable, and cList< T >::Next().

Referenced by cHash< cChannel >::Get().

Here is the call graph for this function:

cList< cHashObject > * cHashBase::GetList ( unsigned int  Id  )  const

Definition at line 1543 of file tools.c.

References hashfn(), and hashTable.

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

Here is the call graph for this function:


Member Data Documentation

cList<cHashObject>** cHashBase::hashTable [private]

Definition at line 335 of file tools.h.

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

int cHashBase::size [private]

Definition at line 336 of file tools.h.

Referenced by cHashBase(), and Clear().


The documentation for this class was generated from the following files:
Generated on Tue Nov 6 20:12:35 2007 for VDR by  doxygen 1.5.3-20071008