Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

SmartsParser::SPEdge Class Reference

Edge representation of the smarts parser graph. More...

#include <smartsParser.h>

List of all members.

Public Member Functions

Constructors and destructors
 SPEdge ()
 Default constructor.
 SPEdge (const SPEdge &sp_edge)
 Copy constructor.
virtual ~SPEdge ()
 Destructor.
Acessors
bool isInternal () const
 returns true if this is a internal edge
void setInternal (bool internal)
 set this edge to a internal edge
void setSPBond (SPBond *sp_bond)
 sets the corresponding SPBond of this edge
SPBondgetSPBond () const
 returns the corresponding SPBond of this edge
void setFirstSPNode (SPNode *first)
 set the first SPNode of this edge
SPNodegetFirstSPNode () const
 returns the first SPNode of this edge
void setSecondSPNode (SPNode *second)
 sets the second SPNode of this edge
SPNodegetSecondSPNode () const
 returns the second SPNode of this edge
SPNodegetPartnerSPNode (SPNode *node)
 returns the partner; either the first or the second SPNode
bool isNot () const
 returns true if negation is enabled
void setNot (bool is_not)
 set the negation flag
void setFirstSPEdge (SPEdge *first)
 set the first SPEdge (first tree child)
SPEdgegetFirstSPEdge () const
 returns the first SPEdge (first tree child)
void setSecondSPEdge (SPEdge *second)
 set the second SPEdge (second tree child)
SPEdgegetSecondSPEdge () const
 returns the second SPEdge (second tree child)
void setLogicalOperator (LogicalOperator log_op)
 sets the associated logical operator (for the child edges)
LogicalOperator getLogicalOperator () const
 returns the asociated logical operator (for the child edges)

Protected Attributes

bool internal_
 internal flag
bool is_not_
 negation flag
SPNodefirst_
 first SPNode
SPNodesecond_
 second SPNode
SPBondbond_
 associated bond
SPEdgefirst_edge_
 first SPEdge
SPEdgesecond_edge_
 second SPEdge
LogicalOperator log_op_
 logical operator associated with the SPEdges


Detailed Description

Edge representation of the smarts parser graph.