A Thread-safe cache for strings.
This is used to generically store strings that are created in the computation graph machinery, for example when adding a new node.
Public Member Functions | |
auto | Insert (const std::string &string) -> decltype(fStrings)::const_iterator |
Inserts the input string in the cache and returns an iterator to the cached string. | |
Private Attributes | |
std::shared_mutex | fMutex {} |
std::unordered_set< std::string > | fStrings {} |
#include <ROOT/RDF/Utils.hxx>
auto ROOT::Internal::RDF::RStringCache::Insert | ( | const std::string & | string | ) | -> decltype(fStrings)::const_iterator |
Inserts the input string in the cache and returns an iterator to the cached string.
The function implements the following strategy for thread-safety:
Definition at line 445 of file RDFUtils.cxx.
|
private |
|
private |