#include <expressionPredicate.h>

Public Member Functions |
|
|
Constructors and Destructor.
|
|
| ExpressionPredicate () | |
| Default Constructor. |
|
| ExpressionPredicate (const ExpressionPredicate &predicate) | |
| Copy constructor. |
|
| ExpressionPredicate (const String &argument) | |
| Detailed Constructor. |
|
| virtual | ~ExpressionPredicate () |
| Destructor. |
|
|
Assignment
|
|
| ExpressionPredicate & | operator= (const ExpressionPredicate &predicate) |
| Assignment operator. |
|
| virtual void | clear () |
| Clear method. |
|
|
Predicates
|
|
| bool | operator== (const ExpressionPredicate &predicate) const |
| Equality operator. |
|
|
Accessors.
|
|
| virtual bool | operator() (const Atom &atom) const |
| evaluate this ExpressionPredicate by comparing
its argument with the selected predicate of atom. |
|
| virtual void | setArgument (const String &argument) |
| set the Argument of this ExpressionPredicate |
|
| const String & | getArgument () const |
| Get the argument of an ExpressionPredicate. |
|
Protected Attributes |
|
| String | argument_ |
The base class for all kernel predicates (defined in BALL/KERNEL/standardPredicates.h and used by Expression . You have to derive your own predicate classes from this class if you want to use (and register) them with Expression .
| BALL::ExpressionPredicate::ExpressionPredicate | ( | const String & | argument | ) |
Detailed Constructor.
Construct an ExpressionPredicate with a string.
| argument | the argument to use for this predicate |
| const String& BALL::ExpressionPredicate::getArgument | ( | ) | const |
Get the argument of an ExpressionPredicate.
| virtual bool BALL::ExpressionPredicate::operator() | ( | const Atom & | atom | ) | const [virtual] |
evaluate this ExpressionPredicate by comparing its argument with the selected predicate of atom.
| atom | the atom to compare with |
Reimplemented from BALL::UnaryPredicate< Atom >.
Reimplemented in BALL::TruePredicate, BALL::FalsePredicate, BALL::SelectedPredicate, BALL::AtomNamePredicate, BALL::AtomTypePredicate, BALL::ElementPredicate, BALL::ResiduePredicate, BALL::ResidueIDPredicate, BALL::ProteinPredicate, BALL::ChainPredicate, BALL::SecondaryStructurePredicate, BALL::SolventPredicate, BALL::MoleculePredicate, BALL::BackBonePredicate, BALL::NucleotidePredicate, BALL::InRingPredicate, BALL::NumberOfBondsPredicate, BALL::SingleBondsPredicate, BALL::DoubleBondsPredicate, BALL::TripleBondsPredicate, BALL::AromaticBondsPredicate, BALL::ConnectedToPredicate, BALL::SpHybridizedPredicate, BALL::Sp2HybridizedPredicate, BALL::Sp3HybridizedPredicate, BALL::ChargePredicate, BALL::AxialPredicate, BALL::Conformation4C1Predicate, and BALL::SMARTSPredicate.
| virtual void BALL::ExpressionPredicate::setArgument | ( | const String & | argument | ) | [virtual] |
set the Argument of this ExpressionPredicate
| argument | the string to use for this predicate |
Reimplemented in BALL::ConnectedToPredicate.
1.5.8