SNAP Library 4.1, Developer Reference
2018-07-26 16:30:42
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
Predicate node - represents a binary predicate operation on two predicate nodes. More...
#include <table.h>
Public Member Functions | |
TPredicateNode () | |
Default constructor. More... | |
TPredicateNode (const TAtomicPredicate &A) | |
Constructor for atomic predicate node (leaf) More... | |
TPredicateNode (TPredOp Opr) | |
Constructor for logical operation predicate node (internal node) More... | |
TPredicateNode (const TPredicateNode &P) | |
Copy constructor. More... | |
void | AddLeftChild (TPredicateNode *Child) |
Add left child to this node. More... | |
void | AddRightChild (TPredicateNode *Child) |
Add right child to this node. More... | |
void | GetVariables (TStrV &Variables) |
Get variables in the predicate tree rooted at this node. More... | |
Public Attributes | |
TPredOp | Op |
Logical op represented by this node. More... | |
TBool | Result |
Result of evaulating the predicate rooted at this node. More... | |
TAtomicPredicate | Atom |
Atomic predicate at this node. More... | |
TPredicateNode * | Parent |
Parent node of this node. More... | |
TPredicateNode * | Left |
Left child of this node. More... | |
TPredicateNode * | Right |
Friends | |
class | TPredicate |
Predicate node - represents a binary predicate operation on two predicate nodes.
|
inline |
Default constructor.
Definition at line 60 of file table.h.
|
inline |
Constructor for atomic predicate node (leaf)
Definition at line 63 of file table.h.
|
inline |
Constructor for logical operation predicate node (internal node)
Definition at line 66 of file table.h.
|
inline |
Copy constructor.
Definition at line 69 of file table.h.
|
inline |
|
inline |
void TPredicateNode::GetVariables | ( | TStrV & | Variables | ) |
Get variables in the predicate tree rooted at this node.
Definition at line 1 of file table.cpp.
References TVec< TVal, TSizeTy >::Add(), Atom, GetVariables(), Left, TAtomicPredicate::Lvar, NOP, Op, Right, and TAtomicPredicate::Rvar.
Referenced by GetVariables(), and TPredicate::GetVariables().
|
friend |
TAtomicPredicate TPredicateNode::Atom |
Atomic predicate at this node.
Definition at line 55 of file table.h.
Referenced by TPredicate::Eval(), and GetVariables().
TPredicateNode* TPredicateNode::Left |
Left child of this node.
Definition at line 57 of file table.h.
Referenced by AddLeftChild(), TPredicate::Eval(), and GetVariables().
TPredOp TPredicateNode::Op |
Logical op represented by this node.
Definition at line 53 of file table.h.
Referenced by TPredicate::Eval(), and GetVariables().
TPredicateNode* TPredicateNode::Parent |
Parent node of this node.
Definition at line 56 of file table.h.
Referenced by AddLeftChild(), AddRightChild(), and TPredicate::Eval().
TBool TPredicateNode::Result |
Result of evaulating the predicate rooted at this node.
Definition at line 54 of file table.h.
Referenced by TPredicate::Eval().
TPredicateNode* TPredicateNode::Right |
Right child of this node
Definition at line 58 of file table.h.
Referenced by AddRightChild(), TPredicate::Eval(), and GetVariables().