BALL  1.4.79
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
BALL::ChargePredicate Class Reference

#include <BALL/KERNEL/standardPredicates.h>

Inheritance diagram for BALL::ChargePredicate:
BALL::ExpressionPredicate BALL::UnaryPredicate< Atom >

Public Member Functions

virtual bool operator() (const Atom &atom) const
 
- Public Member Functions inherited from BALL::ExpressionPredicate
 ExpressionPredicate ()
 
 ExpressionPredicate (const ExpressionPredicate &predicate)
 
 ExpressionPredicate (const String &argument)
 
virtual ~ExpressionPredicate ()
 
ExpressionPredicateoperator= (const ExpressionPredicate &predicate)
 
virtual void clear ()
 
bool operator== (const ExpressionPredicate &predicate) const
 
virtual void setArgument (const String &argument)
 
const StringgetArgument () const
 
- Public Member Functions inherited from BALL::UnaryPredicate< Atom >
virtual ~UnaryPredicate ()
 

Additional Inherited Members

- Protected Attributes inherited from BALL::ExpressionPredicate
String argument_
 

Detailed Description

Charge predicate

Definition at line 775 of file standardPredicates.h.

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
atomthe atom to test
Returns
true, if the predicate is true, false otherwise

Reimplemented from BALL::ExpressionPredicate.