#include <Table.H>
Inheritance diagram for Table< K, V >::Default:
Public Member Functions | |
Default (int sizeHint=0, bool useGC=false) throw () | |
Default (const Default *tbl, bool useGC=false) throw () | |
~Default () throw () | |
void | Init (Bit32 sizeHint=0U) throw () |
Default & | operator= (const Default &tbl) throw () |
int | Size () const throw () |
bool | Get (const K &k, V &v) const throw () |
bool | Put (const K &k, const V &v, bool resize=true) throw () |
bool | Delete (const K &k, V &v, bool resize=true) throw () |
void | Resize () throw () |
Private Types | |
typedef EntryList * | EntryListPtr |
Private Member Functions | |
void | NewBuckets (bool allocBuckets) throw () |
void | AllocBuckets (Bit32 numBuckets) throw () |
void | EmptyBuckets (Bit32 numBuckets) throw () |
void | Rehash (Bit16 logBuckets) throw () |
Bit32 | Bucket (const K &k) const throw () |
void | Copy (const Default *tbl) throw () |
Default (const Default &) | |
Private Attributes | |
Bit32 | numEntries |
Bit32 | minEntries |
Bit32 | maxEntries |
Bit16 | logBuckets |
Bit16 | minLogBuckets |
EntryListPtr * | buckets |
Friends | |
class | Iterator |
Classes | |
class | EntryList |
|
|
|
Definition at line 118 of file Table.H. References Table< K, V >::Default::Init(). |
|
Definition at line 130 of file Table.H. References Table< K, V >::Default::Copy(), Table< K, V >::Default::Init(), and Table< K, V >::Default::numEntries. |
|
Definition at line 301 of file Table.H. References Table< K, V >::Default::buckets, Table< K, V >::Default::logBuckets, and Table< K, V >::Default::EntryList::tail. |
|
|
|
Definition at line 341 of file Table.H. References NEW_ARRAY. |
|
|
|
Definition at line 268 of file Table.H. References Table< K, V >::Iterator::Next(). Referenced by Table< K, V >::Default::Default(), and Table< K, V >::Default::operator=(). |
|
|
|
|
|
Definition at line 283 of file Table.H. References Ceiling, Log_2(), and max(). Referenced by CacheS_DoFreeMPKFiles(), Table< K, V >::Default::Default(), DeleteAllDirShortIds(), main(), and Table< K, V >::Default::operator=(). |
|
Definition at line 322 of file Table.H. References Round. |
|
Definition at line 145 of file Table.H. References Table< K, V >::Default::Copy(), and Table< K, V >::Default::Init(). |
|
|
Definition at line 363 of file Table.H. References Table< K, V >::Default::EntryList::key, and Table< K, V >::Default::EntryList::tail. Referenced by Table< K, V >::Default::Resize(). |
|
Definition at line 397 of file Table.H. References Table< K, V >::Default::Rehash(). |
|
Definition at line 150 of file Table.H. References Table< K, V >::Default::numEntries. Referenced by DeleteAllDirShortIds(), RecursiveStats::empty(), CacheS::FlushAll(), GardenerThread(), main(), VMultiPKFile::NumVPKFiles(), StatCount::PruneTroubleEntries(), Weeder::RecoverMiscVars(), ReposRoots::Scan(), VPKFile::Update(), and Weeder::WriteMiscVars(). |
|
Reimplemented in ShortIdRefCount. |
|
Definition at line 183 of file Table.H. Referenced by Table< K, V >::Default::~Default(). |
|
Definition at line 181 of file Table.H. Referenced by Table< K, V >::Default::~Default(). |
|
|
|
|
|
|
|
Definition at line 178 of file Table.H. Referenced by Table< K, V >::Default::Default(), and Table< K, V >::Default::Size(). |