00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 #ifndef _cvc3__expr_h_
00025 #include "expr.h"
00026 #endif
00027 
00028 #ifndef _cvc3__include__expr_hash_h_
00029 #define _cvc3__include__expr_hash_h_
00030 
00031 #include "hash_fun.h"
00032 namespace Hash
00033 {
00034 
00035 template<> struct hash<CVC3::Expr>
00036 {
00037   size_t operator()(const CVC3::Expr& e) const { return e.hash(); }
00038 };
00039 
00040 template<> class hash<std::string> {
00041  private:  
00042   hash<const char*> h;
00043  public:
00044   size_t operator()(const std::string& s) const {
00045     return h(s.c_str());
00046   }
00047 };
00048 
00049 }
00050 
00051 #endif