UT_HashTable Class Reference

#include <UT_HashTable.h>

Inheritance diagram for UT_HashTable:

CH_ChannelRefHashTable

List of all members.

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
template<typename T >
T * findPointer (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
bool empty () const
UT_Thingoperator[] (const UT_Hash &symbol)
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 (ostream &os) const
void dumpTable (FILE *output) const
int64 getMemUsage (bool only_this) 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

Examples:

SIM/SNOW_Solver.h, and SOP/SOP_CustomBrush.C.

Definition at line 28 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 (  )  const [inline]

Definition at line 175 of file UT_HashTable.h.

void UT_HashTable::clear (  ) 

Examples:
SIM/SNOW_Solver.C.

int UT_HashTable::contains ( const UT_Hash symbol  )  const [inline]

Definition at line 43 of file UT_HashTable.h.

int UT_HashTable::deleteSymbol ( const UT_Hash symbol  ) 

void UT_HashTable::dumpTable ( FILE *  output  )  const

bool UT_HashTable::empty (  )  const [inline]

Definition at line 61 of file UT_HashTable.h.

traverser UT_HashTable::end (  )  const [inline]

Definition at line 181 of file UT_HashTable.h.

unsigned UT_HashTable::entries ( void   )  const [inline]

Definition at line 60 of file UT_HashTable.h.

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

Definition at line 47 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 69 of file UT_HashTable.h.

int64 UT_HashTable::getMemUsage ( bool  only_this  )  const

float UT_HashTable::getMinLoadFactor (  )  const [inline]

Definition at line 71 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 ( ostream &  os  )  const

void UT_HashTable::outputStats ( FILE *  output  )  const

void UT_HashTable::setMaxLoadFactor ( float  max_load_factor  ) 

void UT_HashTable::setMinLoadFactor ( float  min_load_factor  ) 

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:

Generated on Mon Jan 28 00:30:07 2013 for HDK by  doxygen 1.5.9