18 #ifndef MANIFOLD_RNDF_UNIQUEID_HH_
19 #define MANIFOLD_RNDF_UNIQUEID_HH_
41 public:
explicit UniqueId(
const int _x,
54 public:
int X()
const;
61 public:
bool SetX(
const int _x);
65 public:
int Y()
const;
72 public:
bool SetY(
const int _y);
76 public:
int Z()
const;
83 public:
bool SetZ(
const int _z);
87 public:
bool Valid()
const;
92 public:
bool operator==(
const UniqueId &_other)
const;
97 public:
bool operator!=(
const UniqueId &_other)
const;
110 _out << _id.
X() <<
"." << _id.
Y() <<
"." << _id.
Z();
#define MANIFOLD_VISIBLE
Use to represent "symbol visible" if supported.
Definition: Helpers.hh:55
int Z() const
Get the 'z' value.
int Y() const
Get the 'y' value.
friend std::ostream & operator<<(std::ostream &_out, const UniqueId &_id)
Stream insertion operator.
Definition: UniqueId.hh:107
int X() const
Get 'x' value.
A unique id of the form x.y.z, where x and z are positive numbers and y is non-negative.
Definition: UniqueId.hh:31