32 explicit Id(
int id) : m_id(id) {}
36 int get()
const {
return m_id; }
74 template <>
struct hash<paal::lp::Id> {
79 return hash<int>()(x.
get());
83 template <>
struct hash<paal::lp::row_id> :
public hash<paal::lp::Id> {};
85 template <>
struct hash<paal::lp::col_id> :
public hash<paal::lp::Id> {};
89 #endif // PAAL_IDS_HPP
bool operator<(Id id) const
Less operator.
col_id(int id)
Constructor.
row_id(int id)
Constructor.
std::size_t operator()(const paal::lp::Id &x) const
int get() const
Returns the id number.
bool operator==(Id id) const
Equality operator.