Stores static information about a variable.
More...
#include <shared_context.h>
Stores static information about a variable.
Enumerator |
---|
MARK_P |
|
MARK_N |
|
NANT |
|
PROJECT |
|
BODY |
|
EQ |
|
DISJ |
|
FROZEN |
|
Clasp::VarInfo::VarInfo |
( |
| ) |
|
|
inline |
static uint8 Clasp::VarInfo::flag |
( |
FLAG |
x | ) |
|
|
inlinestatic |
bool Clasp::VarInfo::frozen |
( |
| ) |
const |
|
inline |
Returns true if var is excluded from variable elimination.
bool Clasp::VarInfo::has |
( |
FLAG |
f | ) |
const |
|
inline |
bool Clasp::VarInfo::has |
( |
uint32 |
f | ) |
const |
|
inline |
bool Clasp::VarInfo::inDisj |
( |
| ) |
const |
|
inline |
bool Clasp::VarInfo::nant |
( |
| ) |
const |
|
inline |
Returns true if var is contained in a negative loop or head of a choice rule.
bool Clasp::VarInfo::preferredSign |
( |
| ) |
const |
|
inline |
Returns the preferred sign of this variable w.r.t its type.
- Returns
- false (i.e no sign) if var originated from body, otherwise true.
bool Clasp::VarInfo::project |
( |
| ) |
const |
|
inline |
Returns true if var is a projection variable.
void Clasp::VarInfo::set |
( |
FLAG |
f | ) |
|
|
inline |
void Clasp::VarInfo::toggle |
( |
FLAG |
f | ) |
|
|
inline |
VarType Clasp::VarInfo::type |
( |
| ) |
const |
|
inline |
Returns the type of the variable (or Var_t::atom_body_var if variable was created with parameter eq=true).
uint8 Clasp::VarInfo::rep |
The documentation for this struct was generated from the following file:
- /Users/danielbaeck/Dropbox/Uni Klagenfurt/Diplomarbeit/gringo44/libclasp/clasp/shared_context.h