59 explicit node(
unsigned int j) :
id(j) {}
64 operator unsigned int()
const {
93 return id != UINT_MAX;
103struct hash<tlp::node> {
104 size_t operator()(
const tlp::node n)
const {
109struct equal_to<tlp::node> {
110 size_t operator()(
const tlp::node n,
const tlp::node n2)
const {
111 return n.
id == n2.
id;
115struct less<tlp::node> {
116 size_t operator()(
const tlp::node n,
const tlp::node n2)
const {
unsigned int id
id The identifier of the node.
bool isValid() const
isValid checks if the node is valid. An invalid node is a node whose id is UINT_MAX.
bool operator==(const node n) const
operator != Compares two nodes, checking that they are identical.
node(unsigned int j)
node Create a node of given identifier. It is your responsibility to make sure a node of this ID exis...
constexpr node()
node creates an invalid node.
bool operator!=(const node n) const
operator != Compares two nodes, checking that they are different..