The Gaudi Framework
master (37c0b60a)
|
Helper to record a property identifier as a sequence of SharedString instances. More...
#include </builds/gaudi/Gaudi/GaudiCoreSvc/src/JobOptionsSvc/PropertyId.h>
Public Member Functions | |
PropertyId (const std::string &s) | |
PropertyId (std::string_view s) | |
std::string | str () const |
operator std::string () const | |
std::size_t | hash () const noexcept |
Private Attributes | |
std::vector< SharedString > | m_chunks |
std::size_t | m_hash |
Friends | |
bool | operator== (const PropertyId &lhs, const PropertyId &rhs) |
Helper to record a property identifier as a sequence of SharedString instances.
A PropertyId instance initilized from a string like SomeName.OtherName.AnotherLevel.PropertyName
will use internally a vector of 4 SharedString instances so that the storage for the various components can be shared with other PropertyId instances.
To be afficiently used as key in an std::unordered_map
, PropertyId caches the hash computed from the string it was constructed from.
Definition at line 73 of file PropertyId.h.
|
inline |
Definition at line 75 of file PropertyId.h.
|
inline |
Definition at line 76 of file PropertyId.h.
|
inlinenoexcept |
Definition at line 104 of file PropertyId.h.
|
inline |
Definition at line 102 of file PropertyId.h.
|
inline |
Definition at line 92 of file PropertyId.h.
|
friend |
Definition at line 111 of file PropertyId.h.
|
private |
Definition at line 107 of file PropertyId.h.
|
private |
Definition at line 108 of file PropertyId.h.