HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_HashTable Class Reference

#include <UT_HashTable.h>

Classes

class  traverser
 

Public Member Functions

 UT_HashTable ()
 
virtual ~UT_HashTable ()
 
void useOrderedLists (bool ordered)
 
void addSymbol (const UT_Hash &symbol, const UT_Thing &data)
 
int findSymbol (const UT_Hash &symbol, UT_Thing *datap, const UT_Hash **hash_symbol=0) const
 
int contains (const UT_Hash &symbol) const
 
int count (const UT_Hash &symbol) const
 
template<typename T >
TfindPointer (const UT_Hash &symbol) const
 
int deleteSymbol (const UT_Hash &symbol)
 
int moveSymbol (const UT_Hash &oldsymbol, const UT_Hash &newsymbol)
 
void clear ()
 
unsigned entries () const
 
unsigned size () const
 
bool empty () const
 
UT_Thingoperator[] (const UT_Hash &symbol)
 
void reserveTableSize (int size)
 
float getMaxLoadFactor () const
 
void setMaxLoadFactor (float max_load_factor)
 
float getMinLoadFactor () const
 
void setMinLoadFactor (float min_load_factor)
 
void mergeTable (const UT_HashTable &table)
 
const UT_HashgetHashReference (const UT_Hash &hash)
 
void outputStats (FILE *output) const
 
void outputStats (std::ostream &os) const
 
void dumpTable (FILE *output) const
 
int64 getMemoryUsage (bool inclusive) const
 
int traverseConst (int(*function)(UT_Thing &, const UT_Hash &, void *), void *data) const
 
int traverse (int(*function)(UT_Thing &, const UT_Hash &, void *), void *data)
 
traverser begin () const
 
traverser end () const
 

Detailed Description

Definition at line 25 of file UT_HashTable.h.

Constructor & Destructor Documentation

UT_HashTable::UT_HashTable ( )
explicit
virtual UT_HashTable::~UT_HashTable ( )
virtual

Member Function Documentation

void UT_HashTable::addSymbol ( const UT_Hash symbol,
const UT_Thing data 
)
traverser UT_HashTable::begin ( void  ) const
inline

Definition at line 193 of file UT_HashTable.h.

void UT_HashTable::clear ( )
int UT_HashTable::contains ( const UT_Hash symbol) const
inline

Definition at line 43 of file UT_HashTable.h.

int UT_HashTable::count ( const UT_Hash symbol) const
inline

Definition at line 46 of file UT_HashTable.h.

int UT_HashTable::deleteSymbol ( const UT_Hash symbol)
void UT_HashTable::dumpTable ( FILE *  output) const
bool UT_HashTable::empty ( void  ) const
inline

Definition at line 65 of file UT_HashTable.h.

traverser UT_HashTable::end ( void  ) const
inline

Definition at line 199 of file UT_HashTable.h.

unsigned UT_HashTable::entries ( ) const
inline

Definition at line 63 of file UT_HashTable.h.

template<typename T >
T* UT_HashTable::findPointer ( const UT_Hash symbol) const
inline

Definition at line 50 of file UT_HashTable.h.

int UT_HashTable::findSymbol ( const UT_Hash symbol,
UT_Thing datap,
const UT_Hash **  hash_symbol = 0 
) const
const UT_Hash* UT_HashTable::getHashReference ( const UT_Hash hash)
float UT_HashTable::getMaxLoadFactor ( ) const
inline

Definition at line 77 of file UT_HashTable.h.

int64 UT_HashTable::getMemoryUsage ( bool  inclusive) const
float UT_HashTable::getMinLoadFactor ( ) const
inline

Definition at line 79 of file UT_HashTable.h.

void UT_HashTable::mergeTable ( const UT_HashTable table)
int UT_HashTable::moveSymbol ( const UT_Hash oldsymbol,
const UT_Hash newsymbol 
)
UT_Thing& UT_HashTable::operator[] ( const UT_Hash symbol)
void UT_HashTable::outputStats ( FILE *  output) const
void UT_HashTable::outputStats ( std::ostream &  os) const
void UT_HashTable::reserveTableSize ( int  size)
void UT_HashTable::setMaxLoadFactor ( float  max_load_factor)
void UT_HashTable::setMinLoadFactor ( float  min_load_factor)
unsigned UT_HashTable::size ( void  ) const
inline

Definition at line 64 of file UT_HashTable.h.

int UT_HashTable::traverse ( int(*)(UT_Thing &, const UT_Hash &, void *)  function,
void data 
)
int UT_HashTable::traverseConst ( int(*)(UT_Thing &, const UT_Hash &, void *)  function,
void data 
) const
void UT_HashTable::useOrderedLists ( bool  ordered)

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