clingo
|
Namespaces | |
detail | |
Ground | |
Input | |
IO | |
Output | |
Test | |
Typedefs | |
typedef std::vector< Bound > | BoundVec |
using | Int64Vec = std::vector< int64_t > |
using | FWStringVec = std::vector< FWString > |
using | SValVec = std::vector< Term::SVal > |
using | PredDomMap = unique_list< std::pair< FWSignature, PredicateDomain >, extract_first< FWSignature >> |
using | UTerm = std::unique_ptr< Term > |
using | UGTerm = std::unique_ptr< GTerm > |
using | UGTermVec = std::vector< UGTerm > |
using | SGRef = std::shared_ptr< GRef > |
using | UTermVec = std::vector< UTerm > |
using | UTermVecVec = std::vector< UTermVec > |
using | VarTermVec = std::vector< std::reference_wrapper< VarTerm >> |
using | VarTermBoundVec = std::vector< std::pair< VarTerm *, bool >> |
using | VarTermSet = std::unordered_set< std::reference_wrapper< VarTerm >, value_hash< std::reference_wrapper< VarTerm >>, value_equal_to< std::reference_wrapper< VarTerm >>> |
using | CSPGroundAdd = std::vector< std::pair< int, Value >> |
using | CSPGroundLit = std::tuple< Relation, CSPGroundAdd, int > |
using | ValVec = std::vector< Value > |
using | FWValVec = FlyweightVec< Value > |
using | FWString = Flyweight< std::string > |
using | IdValMap = std::unordered_map< FWString, Value > |
Enumerations | |
enum | NAF { NAF::POS = 0, NAF::NOT = 1, NAF::NOTNOT = 2 } |
enum | RECNAF { RECNAF::POS, RECNAF::NOT, RECNAF::NOTNOT, RECNAF::RECNOT } |
enum | Relation : unsigned { Relation::GT, Relation::LT, Relation::LEQ, Relation::GEQ, Relation::EQ, Relation::NEQ, Relation::ASSIGN } |
enum | AggregateFunction : unsigned { AggregateFunction::COUNT, AggregateFunction::SUM, AggregateFunction::SUMP, AggregateFunction::MIN, AggregateFunction::MAX } |
enum | SolveResult { SolveResult::UNKNOWN =0, SolveResult::SAT =1, SolveResult::UNSAT =2 } |
enum | BinderType { BinderType::NEW, BinderType::OLD, BinderType::ALL } |
enum | Warnings { W_DEFINE_REDEFINTION, W_DEFINE_CYCLIC, W_TERM_UNDEFINED, W_ATOM_UNDEFINED, W_NONMONOTONE_AGGREGATE, W_FILE_INCLUDED, W_TOTAL } |
enum | Errors { ERROR } |
enum | BinOp : int { BinOp::XOR, BinOp::OR, BinOp::AND, BinOp::ADD, BinOp::SUB, BinOp::MUL, BinOp::DIV, BinOp::MOD, BinOp::POW } |
enum | UnOp : int { UnOp::NEG, UnOp::NOT, UnOp::ABS } |
Functions | |
const char * | getExecutableName () |
int | getFileAndLine (unw_word_t addr, char *file, int *line) |
void | showBacktrace (void) |
std::ostream & | operator<< (std::ostream &out, NAF naf) |
NAF | inv (NAF naf) |
RECNAF | recnaf (NAF naf, bool recursive) |
std::ostream & | operator<< (std::ostream &out, RECNAF naf) |
Relation | inv (Relation rel) |
Relation | neg (Relation rel) |
std::ostream & | operator<< (std::ostream &out, Relation rel) |
std::ostream & | operator<< (std::ostream &out, AggregateFunction fun) |
std::ostream & | operator<< (std::ostream &out, BinderType x) |
PredicateDomain & | add (PredDomMap &domains, FWSignature const &sig) |
template<class T > | |
bool | operator< (T const &a, typename IntervalSet< T >::Interval const &b) |
template<class T > | |
bool | operator< (typename IntervalSet< T >::Interval const &a, T const &b) |
std::ostream & | operator<< (std::ostream &out, Location const &loc) |
template<class T , class... Args> | |
std::unique_ptr< T > | make_locatable (Location const &loc, Args &&...args) |
std::unique_ptr< MessagePrinter > & | message_printer () |
std::ostream & | operator<< (std::ostream &out, Printable const &x) |
int | eval (UnOp op, int x) |
int | eval (BinOp op, int x, int y) |
std::ostream & | operator<< (std::ostream &out, BinOp op) |
std::ostream & | operator<< (std::ostream &out, UnOp op) |
UTermVec | unpool (UTerm const &x) |
int | toNum (UTerm const &x) |
std::ostream & | operator<< (std::ostream &out, CSPMulTerm const &x) |
std::ostream & | operator<< (std::ostream &out, CSPAddTerm const &x) |
std::ostream & | operator<< (std::ostream &out, CSPRelTerm const &x) |
template<typename T , typename... Args> | |
std::unique_ptr< T > | make_unique (Args &&...args) |
template<class T > | |
bool | is_value_equal_to (T const &a, T const &b) |
template<class T > | |
void | hash_combine (std::size_t &seed, const T &v) |
template<class T > | |
size_t | get_value_hash (T const &x) |
template<class T , class U , class... V> | |
size_t | get_value_hash (T const &x, U const &y, V const &...args) |
template<class T > | |
T | get_clone (T const &x) |
template<class T , class U > | |
void | print_comma (std::ostream &out, T const &x, const char *sep, U const &f) |
template<class T > | |
void | print_comma (std::ostream &out, T const &x, const char *sep) |
template<class T > | |
void | cross_product (std::vector< std::vector< T >> &vec) |
std::ostream & | operator<< (std::ostream &out, FWString const &x) |
std::string | quote (std::string const &str) |
std::string | unquote (std::string const &str) |
std::ostream & | operator<< (std::ostream &out, Signature const &x) |
std::ostream & | operator<< (std::ostream &out, FWSignature const &x) |
std::ostream & | operator<< (std::ostream &out, const Gringo::Value &val) |
int | ipow (int a, int b) |
UTerm | wrap (UTerm &&x) |
std::string & | replace_all (std::string &haystack, std::string const &needle, std::string const &replace) |
std::string | replace_all (std::string &&haystack, std::string const &needle, std::string const &replace) |
typedef std::vector<Bound> Gringo::BoundVec |
using Gringo::CSPGroundAdd = typedef std::vector<std::pair<int,Value>> |
using Gringo::CSPGroundLit = typedef std::tuple<Relation, CSPGroundAdd, int> |
using Gringo::FWString = typedef Flyweight<std::string> |
using Gringo::FWStringVec = typedef std::vector<FWString> |
using Gringo::FWValVec = typedef FlyweightVec<Value> |
using Gringo::IdValMap = typedef std::unordered_map<FWString, Value> |
using Gringo::Int64Vec = typedef std::vector<int64_t> |
using Gringo::PredDomMap = typedef unique_list<std::pair<FWSignature, PredicateDomain>, extract_first<FWSignature>> |
typedef std::shared_ptr< GRef > Gringo::SGRef |
using Gringo::SValVec = typedef std::vector<Term::SVal> |
using Gringo::UGTerm = typedef std::unique_ptr<GTerm> |
using Gringo::UGTermVec = typedef std::vector<UGTerm> |
typedef std::unique_ptr< Term > Gringo::UTerm |
using Gringo::UTermVec = typedef std::vector<UTerm> |
using Gringo::UTermVecVec = typedef std::vector<UTermVec> |
using Gringo::ValVec = typedef std::vector<Value> |
using Gringo::VarTermBoundVec = typedef std::vector<std::pair<VarTerm*,bool>> |
using Gringo::VarTermSet = typedef std::unordered_set<std::reference_wrapper<VarTerm>, value_hash<std::reference_wrapper<VarTerm>>, value_equal_to<std::reference_wrapper<VarTerm>>> |
using Gringo::VarTermVec = typedef std::vector<std::reference_wrapper<VarTerm>> |
|
strong |
|
strong |
|
strong |
enum Gringo::Errors |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
enum Gringo::Warnings |
|
inline |
|
inline |
int Gringo::eval | ( | UnOp | op, |
int | x | ||
) |
int Gringo::eval | ( | BinOp | op, |
int | x, | ||
int | y | ||
) |
T Gringo::get_clone | ( | T const & | x | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
std::unique_ptr< T > Gringo::make_locatable | ( | Location const & | loc, |
Args &&... | args | ||
) |
std::unique_ptr< T > Gringo::make_unique | ( | Args &&... | args | ) |
|
inline |
|
inline |
bool Gringo::operator< | ( | T const & | a, |
typename IntervalSet< T >::Interval const & | b | ||
) |
bool Gringo::operator< | ( | typename IntervalSet< T >::Interval const & | a, |
T const & | b | ||
) |
|
inline |
|
inline |
|
inline |
|
inline |
std::ostream & Gringo::operator<< | ( | std::ostream & | out, |
BinOp | op | ||
) |
std::ostream & Gringo::operator<< | ( | std::ostream & | out, |
UnOp | op | ||
) |
|
inline |
|
inline |
|
inline |
std::ostream & Gringo::operator<< | ( | std::ostream & | out, |
CSPMulTerm const & | x | ||
) |
|
inline |
|
inline |
std::ostream & Gringo::operator<< | ( | std::ostream & | out, |
CSPAddTerm const & | x | ||
) |
|
inline |
std::ostream & Gringo::operator<< | ( | std::ostream & | out, |
CSPRelTerm const & | x | ||
) |
|
inline |
void Gringo::print_comma | ( | std::ostream & | out, |
T const & | x, | ||
const char * | sep, | ||
U const & | f | ||
) |
void Gringo::print_comma | ( | std::ostream & | out, |
T const & | x, | ||
const char * | sep | ||
) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
int Gringo::toNum | ( | UTerm const & | x | ) |
UTermVec Gringo::unpool | ( | UTerm const & | x | ) |
|
inline |
UTerm Gringo::wrap | ( | UTerm && | x | ) |