18 #ifndef IGNITION_RNDF_UNIQUEID_HH_ 19 #define IGNITION_RNDF_UNIQUEID_HH_ 41 public:
explicit UniqueId(
const int _x,
47 public:
explicit UniqueId(
const std::string &_id);
58 public:
int X()
const;
65 public:
bool SetX(
const int _x);
69 public:
int Y()
const;
76 public:
bool SetY(
const int _y);
80 public:
int Z()
const;
87 public:
bool SetZ(
const int _z);
91 public:
bool Valid()
const;
95 public: std::string String()
const;
100 public:
bool operator==(
const UniqueId &_other)
const;
105 public:
bool operator!=(
const UniqueId &_other)
const;
118 _out << _id.
X() <<
"." << _id.
Y() <<
"." << _id.
Z();
#define IGNITION_RNDF_VISIBLE
Use to represent "symbol visible" if supported.
Definition: Helpers.hh:55
int Y() const
Get the 'y' value.
friend std::ostream & operator<<(std::ostream &_out, const UniqueId &_id)
Stream insertion operator.
Definition: UniqueId.hh:115
A unique id of the form x.y.z, where x and z are positive numbers and y is a non-negative number (per...
Definition: UniqueId.hh:32
Definition: Checkpoint.hh:25
int Z() const
Get the 'z' value.
int X() const
Get 'x' value.