2 #include "common/common.hpp"
3 #include "util/uuid.hpp"
18 bool operator<(
const ObjectRef &other)
const
20 if (type < other.type) {
23 if (type > other.type) {
26 if (uuid < other.uuid) {
29 else if (uuid > other.uuid) {
32 return uuid2 < other.uuid2;
34 bool operator==(
const ObjectRef &other)
const
36 return (type == other.type) && (uuid == other.uuid) && (uuid2 == other.uuid2);
38 bool operator!=(
const ObjectRef &other)
const
40 return !(*
this == other);
46 template <>
struct hash<horizon::ObjectRef> {