realroot_doc 0.1.1
/Users/mourrain/Devel/mmx/realroot/include/realroot/declare_glue.hpp
Go to the documentation of this file.
00001 #ifndef realroot_declare_class_glue_hpp
00002 #define realroot_declare_class_glue_hpp
00003 
00004 #define DECLARE_CLASS(X,S) \
00005   inline unsigned hash(const X& p){ return 1;}                            \
00006   inline unsigned exact_hash(const X& p){ return 1;}                      \
00007   inline unsigned soft_hash(const X& p){ return 1;}                       \
00008   inline bool exact_eq(const X& p, const X& q){ return true;}             \
00009   inline bool exact_neq(const X& p, const X& q){ return false;}           \
00010   inline bool operator ==(const X& p, const X& q){ return true;}          \
00011   inline bool operator !=(const X& p, const X& q){ return false;}         \
00012   inline syntactic flatten(const X& x) { return syntactic(S); }
00013 
00014 #endif