Ginga  0.13.6.1771-df200
The iTV middleware.
Predicate Class Reference

#include <Predicate.h>

Collaboration diagram for Predicate:

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 ()
 
Predicateclone ()
 
void getTest (string *, Predicate::Test *, string *)
 
void setTest (const string &, Predicate::Test, const string &)
 
const list< Predicate * > * getChildren ()
 
void addChild (Predicate *)
 
PredicategetParent ()
 
void initParent (Predicate *)
 

Private Attributes

Predicate::Type _type
 
struct {
   Predicate::Test   test
 
   string   left
 
   string   right
 
_atom
 
list< Predicate * > _children
 
Predicate_parent
 

Member Enumeration Documentation

Enumerator
EQ 
NE 
LT 
LE 
GT 
GE 
Enumerator
FALSUM 
VERUM 
ATOM 
NEGATION 
CONJUNCTION 
DISJUNCTION 

Constructor & Destructor Documentation

GINGA_NAMESPACE_BEGIN Predicate::Predicate ( Predicate::Type  type)

References _atom, _parent, _type, and EQ.

Referenced by clone().

Predicate::~Predicate ( )

References _children.

Member Function Documentation

Predicate * Predicate::getParent ( )

References _parent, and GINGA_NAMESPACE_END.

void Predicate::getTest ( string *  left,
Predicate::Test test,
string *  right 
)
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 
)

Member Data Documentation

struct { ... } Predicate::_atom
list<Predicate *> Predicate::_children
private
Predicate* Predicate::_parent
private

Referenced by getParent(), initParent(), and Predicate().

Predicate::Type Predicate::_type
private
string Predicate::left

Referenced by setTest().

string Predicate::right

Referenced by setTest().

Predicate::Test Predicate::test

Referenced by setTest(), and toString().


The documentation for this class was generated from the following files: