A node of a program-dependency graph.
More...
#include <logic_program_types.h>
|
static const uint32 | noScc = (1u << 27)-1 |
|
static const uint32 | maxVertex = (1u << 28)-1 |
|
static const uint32 | noIdx = 1 |
|
A node of a program-dependency graph.
A node represents a relevant part in a logic program. Each node has at least a literal and a value.
Clasp::Asp::PrgNode::PrgNode |
( |
uint32 |
id, |
|
|
bool |
checkScc = true |
|
) |
| |
|
explicit |
Creates a new node that corresponds to a literal that is false.
bool Clasp::Asp::PrgNode::assignValueImpl |
( |
ValueRep |
v, |
|
|
bool |
noWeak |
|
) |
| |
|
inline |
void Clasp::Asp::PrgNode::clearLiteral |
( |
bool |
clVal | ) |
|
|
inline |
bool Clasp::Asp::PrgNode::eq |
( |
| ) |
const |
|
inline |
Returns true if this node is equivalent to some other node.
If eq() is true, the node is no longer relevant and must not be used any further. The only sensible operation is to call id() in order to get the id of the node that is equivalent to this node.
bool Clasp::Asp::PrgNode::hasVar |
( |
| ) |
const |
|
inline |
Returns true if node has an associated variable in a solver.
uint32 Clasp::Asp::PrgNode::id |
( |
| ) |
const |
|
inline |
Returns the current id of this node.
bool Clasp::Asp::PrgNode::ignoreScc |
( |
| ) |
const |
|
inline |
Ignore the node during scc checking?
Literal Clasp::Asp::PrgNode::literal |
( |
| ) |
const |
|
inline |
Returns the literal associated with this node or a sentinel literal if no var is associated with this node.
void Clasp::Asp::PrgNode::markRemoved |
( |
| ) |
|
|
inline |
void Clasp::Asp::PrgNode::markSeen |
( |
bool |
b | ) |
|
|
inline |
bool Clasp::Asp::PrgNode::relevant |
( |
| ) |
const |
|
inline |
bool Clasp::Asp::PrgNode::removed |
( |
| ) |
const |
|
inline |
void Clasp::Asp::PrgNode::resetId |
( |
uint32 |
id, |
|
|
bool |
seen |
|
) |
| |
|
inline |
bool Clasp::Asp::PrgNode::seen |
( |
| ) |
const |
|
inline |
void Clasp::Asp::PrgNode::setEq |
( |
uint32 |
eqId | ) |
|
|
inline |
void Clasp::Asp::PrgNode::setIgnoreScc |
( |
bool |
b | ) |
|
|
inline |
void Clasp::Asp::PrgNode::setLiteral |
( |
Literal |
x | ) |
|
|
inline |
void Clasp::Asp::PrgNode::setValue |
( |
ValueRep |
v | ) |
|
|
inline |
Literal Clasp::Asp::PrgNode::trueLit |
( |
| ) |
const |
|
inline |
Returns the literal that must be true in order to fulfill the truth-value of this node.
ValueRep Clasp::Asp::PrgNode::value |
( |
| ) |
const |
|
inline |
Returns the value currently assigned to this node.
Var Clasp::Asp::PrgNode::var |
( |
| ) |
const |
|
inline |
Returns the variable associated with this node or sentVar if no var is associated with this node.
uint32 Clasp::Asp::PrgNode::eq_ |
|
protected |
uint32 Clasp::Asp::PrgNode::id_ |
|
protected |
uint32 Clasp::Asp::PrgNode::litIdx_ |
|
protected |
const uint32 Clasp::Asp::PrgNode::maxVertex = (1u << 28)-1 |
|
static |
const uint32 Clasp::Asp::PrgNode::noIdx = 1 |
|
static |
const uint32 Clasp::Asp::PrgNode::noScc = (1u << 27)-1 |
|
static |
uint32 Clasp::Asp::PrgNode::noScc_ |
|
protected |
uint32 Clasp::Asp::PrgNode::seen_ |
|
protected |
uint32 Clasp::Asp::PrgNode::val_ |
|
protected |
The documentation for this class was generated from the following files: