1#ifndef __Identifier_h___
2#define __Identifier_h___
55 virtual void set (
const std::string&
id);
90 virtual void show ()
const;
95 max_value = 0xFFFFFFFF
116 : m_id(
other.get_value())
173 return (m_id ==
other.get_value());
180 return (m_id !=
other.get_value());
187 return (m_id <
other.get_value());
194 return (m_id >
other.get_value());
200 return (!(max_value == m_id));
std::ostream & operator<<(std::ostream &os, const Identifier &Id)
Identifier & operator|=(value_type value)
Bitwise operations.
virtual bool operator<(const Identifier &other) const
virtual bool operator!=(const Identifier &other) const
virtual bool is_valid() const
Check if id is in a valid state.
virtual void set(const std::string &id)
build from a string form - hexadecimal
virtual bool is_valid() const
Check if id is in a valid state.
virtual void clear()
Reset to invalid state.
virtual bool operator==(const Identifier &other) const
virtual bool operator>(const Identifier &other) const
virtual void show() const
Print out in hex form.
virtual std::string getString() const
Provide a string form of the identifier - hexadecimal.
Identifier()
Default constructor.
value_type get_value() const
Identifier(value_type value)
Constructor from value_type.
value_type get_value() const
virtual void clear()
Reset to invalid state.
Identifier & operator&=(value_type value)
Identifier(const Identifier &other)
Copy constructor.
Identifier & operator=(value_type value)
Assignment operator.
Index other(Index i, Index j)