Edge representation of the smarts parser graph. More...
#include <BALL/STRUCTURE/smartsParser.h>
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 | |
| SPBond * | getSPBond () const |
returns the corresponding SPBond of this edge | |
| void | setFirstSPNode (SPNode *first) |
set the first SPNode of this edge | |
| SPNode * | getFirstSPNode () const |
returns the first SPNode of this edge | |
| void | setSecondSPNode (SPNode *second) |
sets the second SPNode of this edge | |
| SPNode * | getSecondSPNode () const |
returns the second SPNode of this edge | |
| SPNode * | getPartnerSPNode (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) | |
| SPEdge * | getFirstSPEdge () const |
returns the first SPEdge (first tree child) | |
| void | setSecondSPEdge (SPEdge *second) |
set the second SPEdge (second tree child) | |
| SPEdge * | getSecondSPEdge () 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 | |
| SPNode * | first_ |
first SPNode | |
| SPNode * | second_ |
second SPNode | |
| SPBond * | bond_ |
associated bond | |
| SPEdge * | first_edge_ |
first SPEdge | |
| SPEdge * | second_edge_ |
second SPEdge | |
| LogicalOperator | log_op_ |
logical operator associated with the SPEdges | |
Edge representation of the smarts parser graph.
| BALL::SmartsParser::SPEdge::SPEdge | ( | ) |
Default constructor.
| BALL::SmartsParser::SPEdge::SPEdge | ( | const SPEdge & | sp_edge | ) |
Copy constructor.
| virtual BALL::SmartsParser::SPEdge::~SPEdge | ( | ) | [virtual] |
Destructor.
| SPEdge* BALL::SmartsParser::SPEdge::getFirstSPEdge | ( | ) | const [inline] |
returns the first SPEdge (first tree child)
| SPNode* BALL::SmartsParser::SPEdge::getFirstSPNode | ( | ) | const [inline] |
returns the first SPNode of this edge
| LogicalOperator BALL::SmartsParser::SPEdge::getLogicalOperator | ( | ) | const [inline] |
returns the asociated logical operator (for the child edges)
returns the partner; either the first or the second SPNode
| SPEdge* BALL::SmartsParser::SPEdge::getSecondSPEdge | ( | ) | const [inline] |
returns the second SPEdge (second tree child)
| SPNode* BALL::SmartsParser::SPEdge::getSecondSPNode | ( | ) | const [inline] |
returns the second SPNode of this edge
| SPBond* BALL::SmartsParser::SPEdge::getSPBond | ( | ) | const [inline] |
returns the corresponding SPBond of this edge
| bool BALL::SmartsParser::SPEdge::isInternal | ( | ) | const [inline] |
returns true if this is a internal edge
| bool BALL::SmartsParser::SPEdge::isNot | ( | ) | const [inline] |
returns true if negation is enabled
| void BALL::SmartsParser::SPEdge::setFirstSPEdge | ( | SPEdge * | first | ) | [inline] |
set the first SPEdge (first tree child)
| void BALL::SmartsParser::SPEdge::setFirstSPNode | ( | SPNode * | first | ) | [inline] |
set the first SPNode of this edge
| void BALL::SmartsParser::SPEdge::setInternal | ( | bool | internal | ) | [inline] |
set this edge to a internal edge
| void BALL::SmartsParser::SPEdge::setLogicalOperator | ( | LogicalOperator | log_op | ) | [inline] |
sets the associated logical operator (for the child edges)
| void BALL::SmartsParser::SPEdge::setNot | ( | bool | is_not | ) | [inline] |
set the negation flag
| void BALL::SmartsParser::SPEdge::setSecondSPEdge | ( | SPEdge * | second | ) | [inline] |
set the second SPEdge (second tree child)
| void BALL::SmartsParser::SPEdge::setSecondSPNode | ( | SPNode * | second | ) | [inline] |
sets the second SPNode of this edge
| void BALL::SmartsParser::SPEdge::setSPBond | ( | SPBond * | sp_bond | ) | [inline] |
sets the corresponding SPBond of this edge
SPBond* BALL::SmartsParser::SPEdge::bond_ [protected] |
associated bond
SPNode* BALL::SmartsParser::SPEdge::first_ [protected] |
first SPNode
SPEdge* BALL::SmartsParser::SPEdge::first_edge_ [protected] |
first SPEdge
bool BALL::SmartsParser::SPEdge::internal_ [protected] |
internal flag
bool BALL::SmartsParser::SPEdge::is_not_ [protected] |
negation flag
LogicalOperator BALL::SmartsParser::SPEdge::log_op_ [protected] |
logical operator associated with the SPEdges
SPNode* BALL::SmartsParser::SPEdge::second_ [protected] |
second SPNode
SPEdge* BALL::SmartsParser::SPEdge::second_edge_ [protected] |
second SPEdge