clingo
|
#include <domain.hh>
Public Types | |
using | element_map = std::unordered_map< Value, Element > |
using | element_type = typename element_map::value_type |
using | bind_index_type = BindIndex< element_type > |
using | full_index_type = FullIndex< element_type > |
using | exports_type = typename bind_index_type::exports_type |
using | element_vec = typename exports_type::element_vec |
using | bind_index_set = std::unordered_set< bind_index_type, call_hash< bind_index_type >> |
using | full_index_set = std::unordered_set< full_index_type, call_hash< full_index_type >> |
Public Member Functions | |
AbstractDomain () | |
AbstractDomain (AbstractDomain const &)=delete | |
AbstractDomain (AbstractDomain &&)=delete | |
void | init () |
virtual element_type & | reserve (Value x) |
bind_index_type & | add (SValVec &&bound, UTerm &&repr) |
full_index_type & | add (UTerm &&repr, unsigned imported) |
element_type * | lookup (Term const &repr, RECNAF naf) |
element_type * | lookup (Term const &repr, BinderType type) |
bool | check (Term const &repr, unsigned &imported) |
void | clear () |
virtual void | mark ()=0 |
virtual void | unmark ()=0 |
virtual void | setEnqueued (bool x) |
virtual bool | isEnqueued () const |
virtual bool | expire () |
virtual void | doClear () |
virtual | ~AbstractDomain () |
Public Member Functions inherited from Gringo::Domain | |
virtual | ~Domain () |
Public Attributes | |
bind_index_set | indices |
full_index_set | fullIndices |
element_map | domain |
exports_type | exports |
bool | enqueued = false |
using Gringo::AbstractDomain< Element >::bind_index_set = std::unordered_set<bind_index_type, call_hash<bind_index_type>> |
using Gringo::AbstractDomain< Element >::bind_index_type = BindIndex<element_type> |
using Gringo::AbstractDomain< Element >::element_map = std::unordered_map<Value, Element> |
using Gringo::AbstractDomain< Element >::element_type = typename element_map::value_type |
using Gringo::AbstractDomain< Element >::element_vec = typename exports_type::element_vec |
using Gringo::AbstractDomain< Element >::exports_type = typename bind_index_type::exports_type |
using Gringo::AbstractDomain< Element >::full_index_set = std::unordered_set<full_index_type, call_hash<full_index_type>> |
using Gringo::AbstractDomain< Element >::full_index_type = FullIndex<element_type> |
Gringo::AbstractDomain< Element >::AbstractDomain | ( | ) |
|
delete |
|
delete |
|
virtual |
AbstractDomain< Element >::bind_index_type & Gringo::AbstractDomain< Element >::add | ( | SValVec && | bound, |
UTerm && | repr | ||
) |
AbstractDomain< Element >::full_index_type & Gringo::AbstractDomain< Element >::add | ( | UTerm && | repr, |
unsigned | imported | ||
) |
bool Gringo::AbstractDomain< Element >::check | ( | Term const & | repr, |
unsigned & | imported | ||
) |
void Gringo::AbstractDomain< Element >::clear | ( | ) |
|
inlinevirtual |
Reimplemented in Gringo::PredicateDomain.
|
inlinevirtual |
Implements Gringo::Domain.
void Gringo::AbstractDomain< Element >::init | ( | ) |
|
inlinevirtual |
Implements Gringo::Domain.
AbstractDomain< Element >::element_type * Gringo::AbstractDomain< Element >::lookup | ( | Term const & | repr, |
RECNAF | naf | ||
) |
AbstractDomain< Element >::element_type * Gringo::AbstractDomain< Element >::lookup | ( | Term const & | repr, |
BinderType | type | ||
) |
|
pure virtual |
|
virtual |
Reimplemented in Gringo::Ground::BodyAggregateDomain.
|
inlinevirtual |
Implements Gringo::Domain.
|
pure virtual |
element_map Gringo::AbstractDomain< Element >::domain |
bool Gringo::AbstractDomain< Element >::enqueued = false |
exports_type Gringo::AbstractDomain< Element >::exports |
full_index_set Gringo::AbstractDomain< Element >::fullIndices |
bind_index_set Gringo::AbstractDomain< Element >::indices |