dlvhex
2.5.0
|
Predicate structure, used in PredicateTable.h. More...
#include <include/dlvhex2/Predicate.h>
Public Member Functions | |
Predicate (IDKind kind, const std::string &symbol, const int &arity) | |
Constructor. | |
std::ostream & | print (std::ostream &o) const |
Writes the predicate p and its arity a as string of kind "Predicate(p,a)" to stream o . | |
Data Fields | |
IDKind | kind |
The kind part of the ID of this symbol. | |
std::string | symbol |
The actual predicate as string. | |
int | arity |
The arity of the predicate. |
Predicate structure, used in PredicateTable.h.
Definition at line 45 of file Predicate.h.
Predicate::Predicate | ( | IDKind | kind, |
const std::string & | symbol, | ||
const int & | arity | ||
) | [inline] |
Constructor.
kind | See Predicate::kind. |
symbol | See Predicate::symbol. |
arity | See Predicate::arity. |
Definition at line 59 of file Predicate.h.
std::ostream& Predicate::print | ( | std::ostream & | o | ) | const [inline] |
Writes the predicate p and its arity a as string of kind "Predicate(p,a)" to stream o
.
o | The output stream to write to. |
o
. Definition at line 64 of file Predicate.h.
int Predicate::arity |
The kind part of the ID of this symbol.
Definition at line 49 of file Predicate.h.
std::string Predicate::symbol |
The actual predicate as string.
Definition at line 51 of file Predicate.h.
Referenced by print(), and RawPrinter::print().