HDK
|
#include <PI_ImportUtils.h>
Classes | |
class | base_iterator |
Iterator conforming to Houdini's atEnd(), advance() interface. More... | |
Public Types | |
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 | |
MapType | myMap |
Friends | |
template<typename OS , typename T > | |
OS & | operator<< (OS &os, const UT_SymbolMap< T > &d) |
A UT_SymbolMap contains a UT_Map but provides the interface required by what was UT_SymbolTable. Strings are passed as const char *
.
Definition at line 22 of file PI_ImportUtils.h.
typedef base_iterator<const ITEM_T, const_map_iterator> UT_SymbolMap< T >::const_iterator |
Definition at line 328 of file UT_SymbolTable.h.
typedef MapType::const_iterator UT_SymbolMap< T >::const_map_iterator |
Definition at line 32 of file UT_SymbolTable.h.
typedef base_iterator<ITEM_T, map_iterator> UT_SymbolMap< T >::iterator |
Definition at line 327 of file UT_SymbolTable.h.
typedef MapType::iterator UT_SymbolMap< T >::map_iterator |
Definition at line 33 of file UT_SymbolTable.h.
typedef UT_StringMap<ITEM_T> UT_SymbolMap< T >::MapType |
Definition at line 31 of file UT_SymbolTable.h.
typedef const_iterator UT_SymbolMap< T >::traverser |
Definition at line 330 of file UT_SymbolTable.h.
typedef ITEM_T UT_SymbolMap< T >::value_type |
Definition at line 34 of file UT_SymbolTable.h.
|
inlineexplicit |
Constructor.
Definition at line 37 of file UT_SymbolTable.h.
|
inline |
Destructor.
Definition at line 42 of file UT_SymbolTable.h.
|
inline |
Add a symbol to the map.
Definition at line 48 of file UT_SymbolTable.h.
|
inline |
Add a symbol and return the string reference.
Definition at line 110 of file UT_SymbolTable.h.
|
inline |
Definition at line 332 of file UT_SymbolTable.h.
|
inline |
Definition at line 334 of file UT_SymbolTable.h.
|
inline |
Information about the buckets
Definition at line 128 of file UT_SymbolTable.h.
|
inline |
Information about the buckets
Definition at line 129 of file UT_SymbolTable.h.
|
inline |
Clear the map
Definition at line 104 of file UT_SymbolTable.h.
|
inline |
Check if a symbol exists.
Definition at line 80 of file UT_SymbolTable.h.
|
inline |
Find out how many times a symbol exists (this will be either 0 or 1).
Definition at line 83 of file UT_SymbolTable.h.
|
inline |
Erase a symbol from the map.
Definition at line 87 of file UT_SymbolTable.h.
|
inline |
Check if the map is empty.
Definition at line 134 of file UT_SymbolTable.h.
|
inline |
Definition at line 333 of file UT_SymbolTable.h.
|
inline |
Definition at line 335 of file UT_SymbolTable.h.
|
inline |
Query the number of elements in the map
Definition at line 122 of file UT_SymbolTable.h.
|
inline |
Erase a symbol from the map
Definition at line 94 of file UT_SymbolTable.h.
|
inline |
Erase a symbol from the map
Definition at line 98 of file UT_SymbolTable.h.
|
inline |
Find a symbol and return an iterator. Returns map_end() if the symbol is not found in the map.
Definition at line 69 of file UT_SymbolTable.h.
|
inline |
Find a symbol and return an iterator. Returns map_end() if the symbol is not found in the map.
Definition at line 73 of file UT_SymbolTable.h.
|
inline |
Find a symbol in the map. If the symbol is found, the data pointer passed in will be assigned to the ITEM_T in the map.
Definition at line 54 of file UT_SymbolTable.h.
|
inline |
Get current load factor.
Definition at line 156 of file UT_SymbolTable.h.
|
inline |
Adjust the maximum/minimum load factors The table will automatically rebuild itself to keep the load factor within the specified range. A minimum load factor of 0 means that the table will never shrink when elements are deleted from it.
Definition at line 164 of file UT_SymbolTable.h.
|
inline |
Return an approximation of how much memory we use.
Definition at line 212 of file UT_SymbolTable.h.
|
inline |
Adjust the maximum/minimum load factors The table will automatically rebuild itself to keep the load factor within the specified range. A minimum load factor of 0 means that the table will never shrink when elements are deleted from it.
Definition at line 168 of file UT_SymbolTable.h.
|
inline |
"getStringReference" returns a pointer to the actual string that is maintained in the symbol table. This can be used to implement a shared string symbol table.
Definition at line 185 of file UT_SymbolTable.h.
|
inline |
Definition at line 142 of file UT_SymbolTable.h.
|
inline |
Returns a unique key based using the passed-in string as a prefix.
Definition at line 197 of file UT_SymbolTable.h.
|
inline |
Definition at line 337 of file UT_SymbolTable.h.
|
inline |
Definition at line 339 of file UT_SymbolTable.h.
|
inline |
Definition at line 338 of file UT_SymbolTable.h.
|
inline |
Definition at line 340 of file UT_SymbolTable.h.
|
inline |
Definition at line 342 of file UT_SymbolTable.h.
|
inline |
Definition at line 344 of file UT_SymbolTable.h.
|
inline |
Merge the specified table with ourselves.
Definition at line 174 of file UT_SymbolTable.h.
|
inline |
Retrieve an entry in the table by name, creating it if it doesn't already exist.
Definition at line 138 of file UT_SymbolTable.h.
void UT_SymbolMap< T >::outputStats | ( | std::ostream & | os | ) | const |
Write out some statistics pertaining to the underlying map container to the output stream given.
Definition at line 373 of file UT_SymbolTable.h.
|
inline |
Call this method when you're adding entries to a table inside a loop and you know how many entries you'll be adding. This will create at least size
buckets but also ensure the load factor is less than the maximum load factor.
Definition at line 152 of file UT_SymbolTable.h.
|
inline |
Adjust the maximum/minimum load factors The table will automatically rebuild itself to keep the load factor within the specified range. A minimum load factor of 0 means that the table will never shrink when elements are deleted from it.
Definition at line 166 of file UT_SymbolTable.h.
|
inline |
Adjust the maximum/minimum load factors The table will automatically rebuild itself to keep the load factor within the specified range. A minimum load factor of 0 means that the table will never shrink when elements are deleted from it.
Definition at line 170 of file UT_SymbolTable.h.
|
inline |
Query the number of elements in the map
Definition at line 123 of file UT_SymbolTable.h.
|
inline |
"traverse" invokes the given function with every member of the symbol table. The order of traversal is undefined. If the function returns a non-zero value the traversal continues. If it returns zero then traversal stops. The return value is zero if the traversal was interupted and one otherwise.
Call traverseConst() if you will not be removing things from the table while traversing, and traverse() if you might be. It is only safe to remove the current item when using traverse() – not other items. If you call traverse() and add something to the table, you may or may not encounter it later in the traversal.
Definition at line 248 of file UT_SymbolTable.h.
|
inline |
"traverse" invokes the given function with every member of the symbol table. The order of traversal is undefined. If the function returns a non-zero value the traversal continues. If it returns zero then traversal stops. The return value is zero if the traversal was interupted and one otherwise.
Call traverseConst() if you will not be removing things from the table while traversing, and traverse() if you might be. It is only safe to remove the current item when using traverse() – not other items. If you call traverse() and add something to the table, you may or may not encounter it later in the traversal.
Definition at line 234 of file UT_SymbolTable.h.
|
friend |
Definition at line 382 of file UT_SymbolTable.h.
|
protected |
Definition at line 354 of file UT_SymbolTable.h.