Lines Matching refs:Type
19 #define PREVENT_COPY_AND_ASSIGN(Type) \
21 Type(const Type&); \
22 void operator=(const Type&)
24 #define DESCRIPTION_TYPE(Type) \
25 int compare(const Type& rhs) const { return memcmp(this, &rhs, sizeof(Type));} \
26 bool operator==(const Type& other) const { return compare(other) == 0; } \
27 bool operator!=(const Type& other) const { return compare(other) != 0; } \
28 friend inline int strictly_order_type(const Type& lhs, const Type& rhs) { return lhs.compare(rhs) < 0; } \
29 friend inline int compare_type(const Type& lhs, const Type& rhs) { return lhs.compare(rhs); } \
30 friend inline hash_t hash_type(const Type& entry) { return entry.hash(); }