clingo
|
#include <dependency.hh>
Public Types | |
typedef std::unordered_multimap < FWSignature, GTerm * > | SigLookup |
typedef std::unordered_multimap< GTerm *, Occ, value_hash< GTerm * > , value_equal_to< GTerm * > > | Occurrences |
typedef Occurrences::iterator | iterator |
Public Member Functions | |
bool | add (GTerm &term, Occ &&occ) |
template<class Callback > | |
void | match (Value const &x, Callback const &c) |
template<class Callback > | |
void | unify (GTerm &x, Callback const &c) |
~Lookup () | |
Public Attributes | |
Occurrences | occs |
typedef Occurrences::iterator Gringo::Ground::Lookup< Occ >::iterator |
typedef std::unordered_multimap<GTerm*, Occ, value_hash<GTerm*>, value_equal_to<GTerm*> > Gringo::Ground::Lookup< Occ >::Occurrences |
typedef std::unordered_multimap<FWSignature, GTerm*> Gringo::Ground::Lookup< Occ >::SigLookup |
Gringo::Ground::Lookup< Occ >::~Lookup | ( | ) |
bool Gringo::Ground::Lookup< Occ >::add | ( | GTerm & | term, |
Occ && | occ | ||
) |
Adds an occurrence associated with a term. If there is already an occurrence with a structurally equivalent term, then the method returns true. Otherwise, the method returns false and the freshly inserted occurrence is associated with the (representative) term already present.
void Gringo::Ground::Lookup< Occ >::match | ( | Value const & | x, |
Callback const & | c | ||
) |
void Gringo::Ground::Lookup< Occ >::unify | ( | GTerm & | x, |
Callback const & | c | ||
) |
Occurrences Gringo::Ground::Lookup< Occ >::occs |