SNAP Library 3.0, User Reference  2016-07-20 17:56:49
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TAtomicPredicate Class Reference

Atomic predicate - encapsulates comparison operations. More...

#include <table.h>

Public Member Functions

 TAtomicPredicate ()
 Default constructor. More...
 
 TAtomicPredicate (TAttrType Typ, TBool IsCnst, TPredComp Cmp, TStr L, TStr R, TInt ICnst, TFlt FCnst, TStr SCnst)
 Construct predicate from given comparison op, variables and constants. More...
 
 TAtomicPredicate (TAttrType Typ, TBool IsCnst, TPredComp Cmp, TStr L, TStr R)
 Compact prototype for constructing non-const atomic predicate. More...
 

Private Attributes

TAttrType Type
 Type of the predicate variables. More...
 
TBool IsConst
 Flag if this atomic node represents a constant value. More...
 
TPredComp Compare
 Comparison op represented by this node. More...
 
TStr Lvar
 Left variable of the comparison op. More...
 
TStr Rvar
 Right variable of the comparison op. More...
 
TInt IntConst
 Int const value if this object is an integer constant. More...
 
TFlt FltConst
 Flt const value if this object is a float constant. More...
 
TStr StrConst
 Str const value if this object is a string constant. More...
 

Friends

class TPredicate
 
class TPredicateNode
 

Detailed Description

Atomic predicate - encapsulates comparison operations.

Definition at line 15 of file table.h.

Constructor & Destructor Documentation

TAtomicPredicate::TAtomicPredicate ( )
inline

Default constructor.

Definition at line 30 of file table.h.

30  : Type(atInt), IsConst(true),
31  Compare(EQ), Lvar(""), Rvar(""),
32  IntConst(0), FltConst(0), StrConst("") {}
TStr Rvar
Right variable of the comparison op.
Definition: table.h:21
TAttrType Type
Type of the predicate variables.
Definition: table.h:17
Definition: gbase.h:23
TStr StrConst
Str const value if this object is a string constant.
Definition: table.h:24
TStr Lvar
Left variable of the comparison op.
Definition: table.h:20
TPredComp Compare
Comparison op represented by this node.
Definition: table.h:19
TInt IntConst
Int const value if this object is an integer constant.
Definition: table.h:22
TBool IsConst
Flag if this atomic node represents a constant value.
Definition: table.h:18
Definition: table.h:7
TFlt FltConst
Flt const value if this object is a float constant.
Definition: table.h:23
TAtomicPredicate::TAtomicPredicate ( TAttrType  Typ,
TBool  IsCnst,
TPredComp  Cmp,
TStr  L,
TStr  R,
TInt  ICnst,
TFlt  FCnst,
TStr  SCnst 
)
inline

Construct predicate from given comparison op, variables and constants.

Definition at line 37 of file table.h.

38  : Type(Typ), IsConst(IsCnst),
39  Compare(Cmp), Lvar(L), Rvar(R), IntConst(ICnst), FltConst(FCnst),
40  StrConst(SCnst) {}
TStr Rvar
Right variable of the comparison op.
Definition: table.h:21
TAttrType Type
Type of the predicate variables.
Definition: table.h:17
TStr StrConst
Str const value if this object is a string constant.
Definition: table.h:24
TStr Lvar
Left variable of the comparison op.
Definition: table.h:20
TPredComp Compare
Comparison op represented by this node.
Definition: table.h:19
TInt IntConst
Int const value if this object is an integer constant.
Definition: table.h:22
TBool IsConst
Flag if this atomic node represents a constant value.
Definition: table.h:18
bool Cmp(const int &RelOp, const TRec &Rec1, const TRec &Rec2)
Definition: bd.h:426
TFlt FltConst
Flt const value if this object is a float constant.
Definition: table.h:23
TAtomicPredicate::TAtomicPredicate ( TAttrType  Typ,
TBool  IsCnst,
TPredComp  Cmp,
TStr  L,
TStr  R 
)
inline

Compact prototype for constructing non-const atomic predicate.

Definition at line 42 of file table.h.

42  :
43  Type(Typ), IsConst(IsCnst), Compare(Cmp), Lvar(L), Rvar(R), IntConst(0),
44  FltConst(0), StrConst("") {}
TStr Rvar
Right variable of the comparison op.
Definition: table.h:21
TAttrType Type
Type of the predicate variables.
Definition: table.h:17
TStr StrConst
Str const value if this object is a string constant.
Definition: table.h:24
TStr Lvar
Left variable of the comparison op.
Definition: table.h:20
TPredComp Compare
Comparison op represented by this node.
Definition: table.h:19
TInt IntConst
Int const value if this object is an integer constant.
Definition: table.h:22
TBool IsConst
Flag if this atomic node represents a constant value.
Definition: table.h:18
bool Cmp(const int &RelOp, const TRec &Rec1, const TRec &Rec2)
Definition: bd.h:426
TFlt FltConst
Flt const value if this object is a float constant.
Definition: table.h:23

Friends And Related Function Documentation

friend class TPredicate
friend

Definition at line 45 of file table.h.

friend class TPredicateNode
friend

Definition at line 46 of file table.h.

Member Data Documentation

TPredComp TAtomicPredicate::Compare
private

Comparison op represented by this node.

Definition at line 19 of file table.h.

TFlt TAtomicPredicate::FltConst
private

Flt const value if this object is a float constant.

Definition at line 23 of file table.h.

TInt TAtomicPredicate::IntConst
private

Int const value if this object is an integer constant.

Definition at line 22 of file table.h.

TBool TAtomicPredicate::IsConst
private

Flag if this atomic node represents a constant value.

Definition at line 18 of file table.h.

TStr TAtomicPredicate::Lvar
private

Left variable of the comparison op.

Definition at line 20 of file table.h.

TStr TAtomicPredicate::Rvar
private

Right variable of the comparison op.

Definition at line 21 of file table.h.

TStr TAtomicPredicate::StrConst
private

Str const value if this object is a string constant.

Definition at line 24 of file table.h.

TAttrType TAtomicPredicate::Type
private

Type of the predicate variables.

Definition at line 17 of file table.h.


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