|
Ginga
0.13.6.1771-df200
The iTV middleware.
|
#include <Predicate.h>

Public Types | |
| enum | Type { FALSUM = 0, VERUM, ATOM, NEGATION, CONJUNCTION, DISJUNCTION } |
| enum | Test { EQ = 0, NE, LT, LE, GT, GE } |
Public Member Functions | |
| Predicate (Predicate::Type) | |
| ~Predicate () | |
| Predicate::Type | getType () |
| string | toString () |
| Predicate * | clone () |
| void | getTest (string *, Predicate::Test *, string *) |
| void | setTest (const string &, Predicate::Test, const string &) |
| const list< Predicate * > * | getChildren () |
| void | addChild (Predicate *) |
| Predicate * | getParent () |
| void | initParent (Predicate *) |
Private Attributes | |
| Predicate::Type | _type |
| struct { | |
| Predicate::Test test | |
| string left | |
| string right | |
| } | _atom |
| list< Predicate * > | _children |
| Predicate * | _parent |
| enum Predicate::Test |
| enum Predicate::Type |
| GINGA_NAMESPACE_BEGIN Predicate::Predicate | ( | Predicate::Type | type | ) |
| Predicate::~Predicate | ( | ) |
References _children.
| void Predicate::addChild | ( | Predicate * | child | ) |
References _children, _type, ATOM, CONJUNCTION, DISJUNCTION, FALSUM, g_assert_nonnull(), initParent(), NEGATION, and VERUM.
Referenced by clone(), ParserXercesC::parseCompositeRule(), ParserXercesC::parseCompoundCondition(), ParserXercesC::parseCompoundStatement(), ParserXercesC::parseRule(), ParserState::popAssessmentStatement(), and ParserState::pushCompoundStatement().
| Predicate * Predicate::clone | ( | ) |
References _atom, _children, _type, addChild(), ATOM, Predicate(), and setTest().
Referenced by Formatter::obtainFormatterLink(), ParserState::popNcl(), and ParserState::pushSimpleCondition().
| const list< Predicate * > * Predicate::getChildren | ( | ) |
| Predicate * Predicate::getParent | ( | ) |
References _parent, and GINGA_NAMESPACE_END.
| void Predicate::getTest | ( | string * | left, |
| Predicate::Test * | test, | ||
| string * | right | ||
| ) |
References _atom, _type, ATOM, g_assert(), and tryset.
Referenced by Document::evalPredicate(), and Formatter::obtainFormatterLink().
| Predicate::Type Predicate::getType | ( | ) |
| void Predicate::initParent | ( | Predicate * | parent | ) |
References _parent, and g_assert_nonnull().
Referenced by addChild().
| void Predicate::setTest | ( | const string & | left, |
| Predicate::Test | test, | ||
| const string & | right | ||
| ) |
References _atom, _type, ATOM, g_assert(), left, right, and test.
Referenced by clone(), Formatter::obtainFormatterLink(), ParserXercesC::parseAssessmentStatement(), ParserXercesC::parseRule(), and ParserState::popAssessmentStatement().
| string Predicate::toString | ( | ) |
References _atom, _children, _type, ATOM, CONJUNCTION, DISJUNCTION, EQ, FALSUM, GE, GT, LE, LT, NE, NEGATION, test, and VERUM.
Referenced by ParserState::popAssessmentStatement(), and ParserState::pushCompoundStatement().
| struct { ... } Predicate::_atom |
Referenced by clone(), getTest(), Predicate(), setTest(), and toString().
|
private |
Referenced by addChild(), clone(), getChildren(), toString(), and ~Predicate().
|
private |
Referenced by getParent(), initParent(), and Predicate().
|
private |
Referenced by addChild(), clone(), getTest(), getType(), Predicate(), setTest(), and toString().
| string Predicate::left |
Referenced by setTest().
| string Predicate::right |
Referenced by setTest().
| Predicate::Test Predicate::test |
Referenced by setTest(), and toString().