Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
23 #ifndef SGTOOLS_STRINGPOOL_H
24 #define SGTOOLS_STRINGPOOL_H
105 const std::string&
str,
144 #endif // not SGTOOLS_STRINGPOOL_H
std::unique_ptr< StringPoolImpl > m_impl
static const int sgkey_t_nbits
Number of bits we'll use in the keys.
void clear()
Empty the pool.
static const sgkey_t sgkey_t_max
size_t size() const
Number of registered mappings.
unsigned int sgaux_t
Type of auxiliary data.
uint32_t sgkey_t
Type of the integer keys.
const std::string * keyToString(sgkey_t key) const
Find the string corresponding to a given key.
void dump() const
Debugging dump.
bool merge(const StringPool &other)
Merge another pool into this one.
sgkey_t stringToKey(const std::string &str, sgaux_t aux=0)
Find the key for a string.
bool registerKey(sgkey_t key, const std::string &str, sgaux_t aux=0)
Remember an additional mapping from key to string.
StringPool & operator=(const StringPool &other)
Assignment/move operators.