Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

Expr Class Reference

Class to define logical or arithmetical expression. More...

#include <abstree.h>

List of all members.

Public Member Functions

 Expr (int new_type, long rval, long lval)
long EvaluateExprFor (HaAtom *aptr)
 evaluate the expression for the current atom

long EvaluateProperty (long prop)
 Evaluate given Property for a Current Atom.


Static Public Member Functions

void DeAllocateExpr (Expr *expr)
 A recursive function to delete Expression with all components of its branches.

int DefineSetExpr (char *, Expr *)
ExprLookUpAtGroupExpr (const char *grp_name, HaMolSet *pmset)
 Create expression of atom group name.

ExprLookUpElement (const char *)
 create expression of element name

int ParsePrimitiveExpr (HaMolSet *pmset, char **ptr_str_parse)
 Build Logical expression (QueryExpr) corresponding to a text of atom specifications (possibly wild-carded).


Public Attributes

int type
 type of logical operation OpAnd, OpOr .. OpWithin etc

Branch rgt
 left part of the expression

Branch lft
 right part of the expression


Protected Member Functions

int OpCode ()
 return code of operation

long EvaluateExpr ()
 evaluate expression for current QAtom, QGroup, QChain


Static Protected Attributes

HaAtomQAtom = NULL
 Current Atom.

HaResidueQGroup = NULL
 Current Residue.

HaChainQChain = NULL
 Current Chain.


Detailed Description

Class to define logical or arithmetical expression.


Member Function Documentation

int Expr::ParsePrimitiveExpr HaMolSet pmset,
char **  str_parse
[static]
 

Build Logical expression (QueryExpr) corresponding to a text of atom specifications (possibly wild-carded).

Generate a logical expression corresponding to string


The documentation for this class was generated from the following files:
Generated on Tue Feb 17 02:03:16 2004 for harlem by doxygen 1.3.6