6 #include "GaudiKernel/Parsers.h"
7 #include "GaudiKernel/ToStream.h"
8 #include "GaudiKernel/StringKey.h"
20 : m_str (
std::move(key) )
21 , m_hash (
std::hash<
std::string>()(m_str) )
28 , m_hash (
std::hash<
std::string>()(m_str) )
46 {
return this == &right || *
this == right ; }
51 {
return *
this == right ; }
56 {
return this != &right && *
this != right ; }
61 {
return *
this != right ; }
81 const std::string& input )
100 ( std::vector<Gaudi::StringKey>& result ,
101 const std::string& input )
104 typedef std::vector<std::string> Strings ;
108 result.reserve ( _result.size() ) ;
110 std::copy ( _result.begin() ,
111 _result.end () , std::back_inserter ( result ) ) ;
bool __eq__(const StringKey &right) const
equality operator for python
std::string toString(const TYPE &obj)
the generic implementation of the type conversion to the string
StatusCode parse(GaudiUtils::HashMap< K, V > &result, const std::string &input)
Basic parser for the types of HashMap used in DODBasicMapper.
std::string __repr__() const
the representation of the object
bool isFailure() const
Test for a status code of FAILURE.
The helper class to represent the efficient "key" for access.
std::string __str__() const
the representation of the object
StringKey(const char *key="")
constructor from plain C-string, perform hashing
std::ostream & toStream(ITERATOR first, ITERATOR last, std::ostream &s, const std::string &open, const std::string &close, const std::string &delim)
the helper function to print the sequence
This class is used for returning status codes from appropriate routines.
bool __neq__(const StringKey &right) const
non-equality operator for python
const std::string & str() const
the actual string
std::string toString() const
string representation (for properties)