17 assert(
lvid < 1000000);
27 assert(lvid < 1000000);
33 assert(lvid < 1000000);
45 return m_data.u64 == rhs.m_data.u64;
50 return m_data.u64 != rhs.m_data.u64;
55 return m_data.u64 < rhs.m_data.u64;
60 return std::hash<uint64_t>()(m_data.u64);
81 inline size_t operator() (
const ny::CLID& clid)
const {
95 template<
class CStringT>
96 class Append<CStringT,
ny::
CLID> final {
98 static void Perform(CStringT&
string,
const ny::CLID& rhs) {
99 string <<
'{' << rhs.
atomid() <<
':' << rhs.
lvid() <<
'}';
size_t hash() const
hash of the clid
Definition: clid.hxx:59
uint32_t atomid() const
Get the atom id of the clid.
Definition: clid.hxx:64
Definition: signature.cpp:9
static CLID AtomMapID(uint32_t atomid)
Create a CLID for an atom id.
Definition: clid.hxx:9
bool isVoid() const
Get if the clid is valid (aka != 0)
Definition: clid.hxx:21
Definition: signature.hxx:53
CLID()=default
Default constructor.
bool operator!=(const CLID &) const
Not equal operator.
Definition: clid.hxx:49
bool operator==(const CLID &) const
Equal operator.
Definition: clid.hxx:44
void reclass(uint32_t lvid)
update the class id from lvid only
Definition: clid.hxx:26
void reclassToVoid()
update to 'void'
Definition: clid.hxx:39
bool operator<(const CLID &) const
Comparison operator.
Definition: clid.hxx:54
uint32_t lvid() const
Get the lvid part.
Definition: clid.hxx:69