clingo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
Classes | Namespaces | Macros
hashable.hh File Reference
#include <ostream>
#include <typeinfo>
#include <functional>
#include <gringo/utility.hh>
Include dependency graph for hashable.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Gringo::Hashable
 
struct  Gringo::call_hash< T >
 
struct  std::hash< Gringo::Hashable >
 

Namespaces

 Gringo
 
 std
 

Macros

#define GRINGO_HASH(T)   namespace std { template <> struct hash<T> : hash<Gringo::Hashable> { }; }
 
#define GRINGO_CALL_HASH(T)   namespace std { template <> struct hash<T> { size_t operator()(T const &x) const { return x.hash(); } }; }
 

Macro Definition Documentation

#define GRINGO_CALL_HASH (   T)    namespace std { template <> struct hash<T> { size_t operator()(T const &x) const { return x.hash(); } }; }
#define GRINGO_HASH (   T)    namespace std { template <> struct hash<T> : hash<Gringo::Hashable> { }; }