1 #ifndef DETECTOR_DESCRIPTION_CORE_DDNAME_H 2 #define DETECTOR_DESCRIPTION_CORE_DDNAME_H 21 using IdToName = std::vector<Registry::const_iterator>;
45 id_type
id()
const {
return id_; }
54 static Registry::iterator
registerName(
const std::pair<std::string, std::string> &
s );
std::map< std::pair< std::string, std::string >, id_type > Registry
const std::string & ns() const
Returns the namespace.
DDName is used to identify DDD entities uniquely.
std::ostream & operator<<(std::ostream &os, const DDName &n)
const std::string fullname() const
bool operator<(const DDName &rhs) const
std::vector< Registry::const_iterator > IdToName
bool operator==(const DDName &rhs) const
static Registry::iterator registerName(const std::pair< std::string, std::string > &s)
const std::string & name() const
Returns the name.