clingo
|
Supported edge types. More...
#include <logic_program_types.h>
Classes | |
struct | Node |
Public Types | |
enum | EdgeType { NORMAL_EDGE = 0, GAMMA_EDGE = 1, CHOICE_EDGE = 2 } |
Type of edge. More... | |
enum | NodeType { BODY_NODE = 0, ATOM_NODE = 1, DISJ_NODE = 2 } |
Type of adjacent node. More... | |
Public Member Functions | |
uint32 | node () const |
Returns the id of the adjacent node. More... | |
EdgeType | type () const |
Returns the type of this edge. More... | |
NodeType | nodeType () const |
Returns the type of adjacent node. More... | |
bool | isNormal () const |
Returns true if edge has normal semantic (normal edge or gamma edge). More... | |
bool | isChoice () const |
Returns true if edge has choice semantic. More... | |
bool | isGamma () const |
Returns true if the edge is a gamma (aux normal) edge. More... | |
bool | isBody () const |
Returns true if the adjacent node is a body. More... | |
bool | isAtom () const |
Returns true if the adjacant node is an atom. More... | |
bool | isDisj () const |
Returns true if the adjacent node is a disjunction. More... | |
bool | operator< (PrgEdge rhs) const |
bool | operator== (PrgEdge rhs) const |
Static Public Member Functions | |
static PrgEdge | noEdge () |
static PrgEdge | newEdge (uint32 nodeId, EdgeType eType, NodeType nType) |
Public Attributes | |
uint32 | rep |
Supported edge types.
Currently, we distinguish three types of edges:
|
inline |
Returns true if the adjacant node is an atom.
|
inline |
Returns true if the adjacent node is a body.
|
inline |
Returns true if edge has choice semantic.
|
inline |
Returns true if the adjacent node is a disjunction.
|
inline |
Returns true if the edge is a gamma (aux normal) edge.
|
inline |
Returns true if edge has normal semantic (normal edge or gamma edge).
|
inlinestatic |
|
inline |
Returns the id of the adjacent node.
|
inline |
Returns the type of adjacent node.
|
inlinestatic |
|
inline |
|
inline |
|
inline |
Returns the type of this edge.
uint32 Clasp::Asp::PrgEdge::rep |