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

#include <TAKE_StringSaver.h>

+ Inheritance diagram for TAKE_StringSaver:

Public Member Functions

 TAKE_StringSaver ()
 
virtual ~TAKE_StringSaver ()
 
int getStringId (TAKE_Packet &os, const char *string)
 
- Public Member Functions inherited from UT_SymbolMap< int >
 UT_SymbolMap ()
 Constructor. More...
 
 ~UT_SymbolMap ()
 Destructor. More...
 
void addSymbol (const UT_StringHolder &symbol, const ITEM_T &data)
 Add a symbol to the map. More...
 
bool findSymbol (const UT_StringRef &symbol, ITEM_T *datap) const
 
bool contains (const UT_StringRef &symbol) const
 Check if a symbol exists. More...
 
exint count (const UT_StringRef &symbol) const
 Find out how many times a symbol exists (this will be either 0 or 1). More...
 
bool deleteSymbol (const UT_StringRef &symbol)
 Erase a symbol from the map. More...
 
void clear ()
 
const char * addSymbolAndGetReference (const UT_StringHolder &symbol, const ITEM_T &data)
 Add a symbol and return the string reference. More...
 
bool empty () const
 Check if the map is empty. More...
 
ITEM_T & operator[] (const UT_StringHolder &symbol)
 
ITEM_T & insert (const UT_StringHolder &name, const ITEM_T &item)
 
void reserveTableSize (exint size)
 
float getLoadFactor () const
 Get current load factor. More...
 
void mergeTable (const UT_SymbolMap &table)
 Merge the specified table with ourselves. More...
 
const char * getStringReference (const UT_StringRef &symbol)
 
UT_StringHolder makeUniqueKey (const char *name) const
 Returns a unique key based using the passed-in string as a prefix. More...
 
int64 getMemoryUsage (bool inclusive) const
 Return an approximation of how much memory we use. More...
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
const_map_iterator map_begin () const
 
map_iterator map_begin ()
 
const_map_iterator map_end () const
 
map_iterator map_end ()
 
UT_IteratorRange
< const_map_iterator
map_range () const
 
UT_IteratorRange< map_iteratormap_range ()
 
void outputStats (std::ostream &os) const
 
map_iterator find (const UT_StringRef &symbol)
 
const_map_iterator find (const UT_StringRef &symbol) const
 
exint erase (const UT_StringRef &symbol)
 
map_iterator erase (const_map_iterator it)
 
exint entries () const
 
exint size () const
 
exint bucket_count () const
 
exint capacity () const
 
float getMaxLoadFactor () const
 
void setMaxLoadFactor (float f)
 
float getMinLoadFactor () const
 
void setMinLoadFactor (float)
 
int traverseConst (int(*function)(ITEM_T &, const char *, void *), void *data) const
 
int traverse (int(*function)(ITEM_T &, const char *, void *), void *data)
 

Additional Inherited Members

- Public Types inherited from UT_SymbolMap< int >
typedef UT_StringMap< ITEM_T > MapType
 
typedef MapType::const_iterator const_map_iterator
 
typedef MapType::iterator map_iterator
 
typedef ITEM_T value_type
 
typedef base_iterator< ITEM_T,
map_iterator
iterator
 
typedef base_iterator< const
ITEM_T, const_map_iterator
const_iterator
 
typedef const_iterator traverser
 
- Protected Attributes inherited from UT_SymbolMap< int >
MapType myMap
 

Detailed Description

Definition at line 24 of file TAKE_StringSaver.h.

Constructor & Destructor Documentation

TAKE_StringSaver::TAKE_StringSaver ( )
virtual TAKE_StringSaver::~TAKE_StringSaver ( )
virtual

Member Function Documentation

int TAKE_StringSaver::getStringId ( TAKE_Packet &  os,
const char *  string 
)

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