36 template<
unsigned short TypeNumber>
61 return other.
id ==
id;
66 return other.
id !=
id;
81 return id >= right.
id;
86 return id <= right.
id;
89 template<
typename Archive>
97 template<
unsigned short TypeNumber>
100 return static_cast<std::size_t
>(
id.getRaw());
103 template<
unsigned short TypeNumber>
104 inline std::ostream& operator <<(std::ostream& o, const TypedId<TypeNumber>&
id)
114 template<
unsigned int TypeNumber>
124 return id == other.
id && type == other.
type;
127 template<
typename IdType>
128 inline IdType
is()
const 130 return IdType::type_number == type;
134 template<
typename IdType>
135 inline IdType
get()
const 137 assert(type == IdType::type_number);
bool operator!=(const TypedId &other) const
AnyId(const TypedId< TypeNumber > &id)
bool operator>=(const TypedId &right) const
unsigned int getRaw() const
bool operator>(const TypedId &right) const
void serialize(Archive &ar, const unsigned int version)
friend class boost::serialization::access
std::size_t hash_value(TypedId< TypeNumber > id)
static const unsigned short type_number
bool operator==(const TypedId &other) const
bool operator<=(const TypedId &right) const
bool operator<(const TypedId &right) const