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

ConnectedToPredicate Class Reference

Predicate class for atoms being connected to a constellation defined by an expression. More...

#include <standardPredicates.h>

Inheritance diagram for ConnectedToPredicate:

ExpressionPredicate UnaryPredicate< Atom > List of all members.

Public Member Functions

 ConnectedToPredicate (const ConnectedToPredicate &predicate) throw ()
virtual void clear () throw ()
 Clear method.
virtual bool operator() (const Atom &atom) const throw ()
 Evaluate the predicate for the atom atom.
void dump () const throw ()
void dump (const CTPNode *current) const throw ()
virtual void setArgument (const String &argument) throw ()
 set the Argument of this ExpressionPredicate

Detailed Description

Predicate class for atoms being connected to a constellation defined by an expression.

Syntax: {tabular}{cl} Bonds

- & single
= & double
# & triple
{126} & aromatic
. & any
Elements &
symbol & the desired element
* & any element
Groups &
( ) & symbols enlosed by brackets denote groups
{tabular}


Member Function Documentation

virtual bool ConnectedToPredicate::operator() const Atom atom  )  const throw () [virtual]
 

Evaluate the predicate for the atom atom.

Parameters:
atom the atom to test
Returns:
true, if the predicate is true, false otherwise

Reimplemented from ExpressionPredicate.

virtual void ConnectedToPredicate::setArgument const String argument  )  throw () [virtual]
 

set the Argument of this ExpressionPredicate

Parameters:
argument the string to use for this predicate

Reimplemented from ExpressionPredicate.