|
BALL
1.4.79
|
#include <BALL/KERNEL/expressionPredicate.h>
Public Member Functions | |
Constructors and Destructor. | |
| ExpressionPredicate () | |
| ExpressionPredicate (const ExpressionPredicate &predicate) | |
| ExpressionPredicate (const String &argument) | |
| virtual | ~ExpressionPredicate () |
Assignment | |
| ExpressionPredicate & | operator= (const ExpressionPredicate &predicate) |
| virtual void | clear () |
Predicates | |
| bool | operator== (const ExpressionPredicate &predicate) const |
Accessors. | |
| virtual bool | operator() (const Atom &atom) const |
| virtual void | setArgument (const String &argument) |
| const String & | getArgument () const |
Public Member Functions inherited from BALL::UnaryPredicate< Atom > | |
| virtual | ~UnaryPredicate () |
Protected Attributes | |
| String | argument_ |
ExpressionPredicate. 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 .
Definition at line 25 of file expressionPredicate.h.
| BALL::ExpressionPredicate::ExpressionPredicate | ( | ) |
Default Constructor
| BALL::ExpressionPredicate::ExpressionPredicate | ( | const ExpressionPredicate & | predicate | ) |
Copy constructor
| BALL::ExpressionPredicate::ExpressionPredicate | ( | const String & | argument | ) |
Detailed Constructor. Construct an ExpressionPredicate with a string.
| argument | the argument to use for this predicate |
|
virtual |
Destructor
|
virtual |
Clear method
Reimplemented in BALL::ConnectedToPredicate.
| const String& BALL::ExpressionPredicate::getArgument | ( | ) | const |
Get the argument of an ExpressionPredicate
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::SMARTSPredicate, BALL::Conformation4C1Predicate, BALL::AxialPredicate, BALL::ChargePredicate, BALL::Sp3HybridizedPredicate, BALL::Sp2HybridizedPredicate, BALL::SpHybridizedPredicate, BALL::ConnectedToPredicate, BALL::AromaticBondsPredicate, BALL::TripleBondsPredicate, BALL::DoubleBondsPredicate, BALL::SingleBondsPredicate, BALL::NumberOfBondsPredicate, BALL::InRingPredicate, BALL::NucleotidePredicate, BALL::NucleicAcidPredicate, BALL::BackBonePredicate, BALL::MoleculePredicate, BALL::SolventPredicate, BALL::SecondaryStructurePredicate, BALL::ChainPredicate, BALL::ProteinPredicate, BALL::ResidueIDPredicate, BALL::ResiduePredicate, BALL::ElementPredicate, BALL::AtomTypePredicate, BALL::AtomNamePredicate, BALL::SelectedPredicate, BALL::FalsePredicate, and BALL::TruePredicate.
| ExpressionPredicate& BALL::ExpressionPredicate::operator= | ( | const ExpressionPredicate & | predicate | ) |
Assignment operator
| bool BALL::ExpressionPredicate::operator== | ( | const ExpressionPredicate & | predicate | ) | const |
Equality operator
|
virtual |
set the Argument of this ExpressionPredicate
| argument | the string to use for this predicate |
Reimplemented in BALL::ConnectedToPredicate.
|
protected |
Definition at line 103 of file expressionPredicate.h.
1.8.7