vdr
2.0.4
|
#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) |
cListObject * | Get (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 |
|
protected |
|
virtual |
void cHashBase::Add | ( | cListObject * | Object, |
unsigned int | Id | ||
) |
Definition at line 2079 of file tools.c.
References cListBase::Add(), hashfn(), and hashTable.
Referenced by cChannels::HashChannel(), and cSchedule::HashEvent().
void cHashBase::Clear | ( | void | ) |
Definition at line 2100 of file tools.c.
References hashTable, and size.
Referenced by cChannels::ReNumber(), and ~cHashBase().
void cHashBase::Del | ( | cListObject * | Object, |
unsigned int | Id | ||
) |
Definition at line 2087 of file tools.c.
References cListBase::Del(), cList< T >::First(), hashfn(), hashTable, and cList< T >::Next().
Referenced by cChannels::UnhashChannel(), and cSchedule::UnhashEvent().
cListObject * cHashBase::Get | ( | unsigned int | Id | ) | const |
Definition at line 2108 of file tools.c.
References cList< T >::First(), hashfn(), hashTable, and cList< T >::Next().
Referenced by cHash< cChannel >::Get().
cList< cHashObject > * cHashBase::GetList | ( | unsigned int | Id | ) | const |
Definition at line 2120 of file tools.c.
References hashfn(), and hashTable.
Referenced by cChannels::GetByChannelID(), and cChannels::GetByServiceID().
|
inlineprivate |
|
private |
Definition at line 612 of file tools.h.
Referenced by Add(), cHashBase(), Clear(), Del(), Get(), GetList(), and ~cHashBase().
|
private |
Definition at line 613 of file tools.h.
Referenced by cHashBase(), and Clear().