2 #include "common/common.hpp"
3 #include "util/uuid_path.hpp"
4 #include "util/layer_range.hpp"
12 unsigned int vertex = 0;
13 LayerRange layer = 10000;
14 Target(
const UUIDPath<2> &uu, ObjectType ot,
const Coordi &pi,
unsigned int v = 0, LayerRange l = 10000)
15 : path(uu), type(ot), p(pi), vertex(v), layer(l){};
16 Target() : type(ObjectType::INVALID){};
19 return type != ObjectType::INVALID;
21 bool operator<(
const Target &other)
const
23 if (type < other.type) {
26 if (type > other.type) {
29 if (path < other.path) {
32 else if (other.path < path) {
35 return vertex < other.vertex;
37 bool operator==(
const Target &other)
const
39 return (path == other.path) && (vertex == other.vertex) && (type == other.type);