BALL::ChargePredicate Class Reference

Charge predicate. More...

#include <standardPredicates.h>

Inheritance diagram for BALL::ChargePredicate:
Inheritance graph
[legend]

List of all members.


Public Member Functions

virtual bool operator() (const Atom &atom) const
Return true if the charge is in the indicated range.

Detailed Description

Charge predicate.

Member Function Documentation

virtual bool BALL::ChargePredicate::operator() ( const Atom & atom ) const [virtual]

Return true if the charge is in the indicated range.

The argument of this predicate is either a number, in which case the charge of the atom has to be equal to that number (down to the specified accuracy for floating point comparisons, EPSILON ), or an operator followed by a number. Possible operators are: <, >, >=, <= , = .

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

Reimplemented from BALL::ExpressionPredicate.


Generated on Thu Aug 6 18:30:34 2009 for BALL by doxygen 1.5.8