vdr
1.7.27
|
#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 |
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) | |
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 |
Definition at line 578 of file include/vdr/tools.h.
cHashBase::cHashBase | ( | int | Size | ) | [protected] |
cHashBase::~cHashBase | ( | void | ) | [virtual] |
cHashBase::cHashBase | ( | int | Size | ) | [protected] |
virtual cHashBase::~cHashBase | ( | ) | [virtual] |
void cHashBase::Add | ( | cListObject * | Object, |
unsigned int | Id | ||
) |
Definition at line 2007 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 2028 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 | ||
) |
Definition at line 2015 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 |
Reimplemented in cHash< T >, cHash< T >, cHash< cEvent >, cHash< cEvent >, cHash< cChannel >, and cHash< cChannel >.
Definition at line 2036 of file tools.c.
References cList< T >::First(), hashfn(), hashTable, and cList< T >::Next().
Referenced by cHash< cChannel >::Get().
cListObject* cHashBase::Get | ( | unsigned int | Id | ) | const |
Reimplemented in cHash< T >, cHash< T >, cHash< cEvent >, cHash< cEvent >, cHash< cChannel >, and cHash< cChannel >.
cList<cHashObject>* cHashBase::GetList | ( | unsigned int | Id | ) | const |
cList< cHashObject > * cHashBase::GetList | ( | unsigned int | Id | ) | const |
Definition at line 2048 of file tools.c.
References hashfn(), and hashTable.
Referenced by cChannels::GetByChannelID(), and cChannels::GetByServiceID().
unsigned int cHashBase::hashfn | ( | unsigned int | Id | ) | const [inline, private] |
unsigned int cHashBase::hashfn | ( | unsigned int | Id | ) | const [inline, private] |
cList< cHashObject > ** cHashBase::hashTable [private] |
Definition at line 580 of file include/vdr/tools.h.
Referenced by Add(), cHashBase(), Clear(), Del(), Get(), GetList(), and ~cHashBase().
int cHashBase::size [private] |
Definition at line 581 of file include/vdr/tools.h.
Referenced by cHashBase(), and Clear().