1 #ifndef GAUDIKERNEL_STRINGKEY_H 2 #define GAUDIKERNEL_STRINGKEY_H 1 51 bool empty ()
const {
return m_str.empty() ; }
123 bool __eq__ (
const StringKey& right )
const ;
127 bool __neq__ (
const StringKey& right )
const ;
149 template <
unsigned int N>
150 inline bool operator==
152 const char (&key2)[
N] )
163 template <
unsigned int N>
164 inline bool operator!=
166 const char (&key2)[
N] )
167 {
return ! ( key1 == key2 ) ; }
173 inline bool operator==
176 {
return key2 == key1 ; }
182 template <
unsigned int N>
183 inline bool operator==
184 (
const char (&key1 )[
N] ,
186 {
return key2 == key1 ; }
192 inline bool operator!=
195 {
return key2 != key1 ; }
201 template <
unsigned int N>
202 inline bool operator!=
203 (
const char (&key1)[
N] ,
222 return lhs + rhs.
str();
225 return lhs + rhs.
str();
228 return lhs.
str() + rhs;
231 return lhs.
str() + rhs;
319 #endif // GAUDIKERNEL_STRINGKEY_H
GAUDI_API std::ostream & toStream(const Gaudi::StringKey &key, std::ostream &s)
send the object to stream (needed to use it as property)
bool operator==(const T &v, const Property< TP, V, H > &p)
delegate (value == property) to property operator==
bool operator!() const
empty key?
std::string toString(const TYPE &obj)
the generic implementation of the type conversion to the string
std::size_t operator()(Gaudi::StringKey const &s) const
std::size_t m_hash
the hash:
The helper class to represent the efficient "key" for access.
bool operator>(const EventIDBase &lhs, const EventIDBase &rhs)
bool empty() const
empty key?
bool operator!=(const std::string &o) const
non-equality string
std::size_t hash_value(const Gaudi::StringKey &key)
hash-function: heeded for boost::hash
std::string m_str
the actual string:
GAUDI_API StatusCode parse(std::vector< Gaudi::StringKey > &result, const std::string &input)
parse the vector of keys from the string
This class is used for returning status codes from appropriate routines.
bool operator<(const EventIDBase &lhs, const EventIDBase &rhs)
bool operator!=(const StringKey &o) const
non equality Key
bool operator>=(const EventIDBase &lhs, const EventIDBase &rhs)
std::size_t __hash__() const
the actual access to the hash
const std::string & str() const
the actual string
Helper functions to set/get the application return code.
bool operator<=(const EventIDBase &lhs, const EventIDBase &rhs)
decltype(std::declval< TP >()+std::declval< T >()) operator+(const T &v, const Property< TP, V, H > &p)
implemantation of (value + property)