![]() |
ATLAS Offline Software
|
Public Member Functions | |
bool | registerKey (StringPool::sgkey_t key, const std::string &str, StringPool::sgaux_t aux) |
Remember an additional mapping from key to string. More... | |
const std::string * | keyToString (StringPool::sgkey_t key, StringPool::sgaux_t &aux) const |
Find the string corresponding to a given key. More... | |
size_t | size () const |
Number of registered mappings. More... | |
void | clear () |
Clear data. More... | |
void | dump () const |
Debugging dump. Write to stdout. More... | |
bool | merge (const StringPoolImpl &other) |
Merge other pool into this one. More... | |
Private Types | |
typedef std::pair< StringPool::sgaux_t, std::string > | pair_t |
typedef SG::SGKeyMap< pair_t > | keymap_t |
Private Attributes | |
keymap_t | m_keymap |
Definition at line 33 of file StringPool.cxx.
|
private |
Definition at line 60 of file StringPool.cxx.
|
private |
Definition at line 59 of file StringPool.cxx.
void SG::StringPoolImpl::clear | ( | ) |
Clear data.
Definition at line 123 of file StringPool.cxx.
void SG::StringPoolImpl::dump | ( | ) | const |
Debugging dump. Write to stdout.
Debugging dump.
Write to cout.
Definition at line 132 of file StringPool.cxx.
const std::string * SG::StringPoolImpl::keyToString | ( | StringPool::sgkey_t | key, |
StringPool::sgaux_t & | aux | ||
) | const |
Find the string corresponding to a given key.
key | The key to look up. |
aux[out] | Auxiliary data associated with the key. |
stringToKey()
or registerKey()
. Definition at line 99 of file StringPool.cxx.
bool SG::StringPoolImpl::merge | ( | const StringPoolImpl & | other | ) |
Merge other pool into this one.
Merge another pool into this one.
other | The other pool to merge into this one. |
In case of collisions, the colliding entries are skipped, and false is returned. If no collisions, then true is returned.
Definition at line 155 of file StringPool.cxx.
bool SG::StringPoolImpl::registerKey | ( | StringPool::sgkey_t | key, |
const std::string & | str, | ||
StringPool::sgaux_t | aux | ||
) |
Remember an additional mapping from key to string.
key | The key to enter. |
str | The string to enter. |
aux | Auxiliary data to include along with the string. |
key
already corresponds to a different string. Definition at line 73 of file StringPool.cxx.
size_t SG::StringPoolImpl::size | ( | ) | const |
Number of registered mappings.
Definition at line 114 of file StringPool.cxx.
|
private |
Definition at line 61 of file StringPool.cxx.