In file Comparison.hh:

namespace events class Comparison : public Condition

Defines an event condition for comparing event functions

Inheritance:


Public Classes

enum operation
Comparison operations.
opEqual
Always true
opUnequal
Always false
opLess
identity condition
opLessEqual
not condition
opGreater
and condition
opGreaterEqual
or condition

Public Methods

Comparison (const Function& f1, const Function& f2, operation op, double tolerance = 0.0)
Constructor
Comparison (const Comparison& cond, const Function& f, operation op, double tolerance = 0.0)
Constructor
virtual Comparison* Copy () const
Copy the event condition
virtual bool Evaluate (const Argument& arg, bool& val) const
Evaluate

Protected Methods

Comparison ()
Default constructor
virtual bool ValueR (const Argument& arg, Value& val) const
Right hand side of left hand side

Inherited from Condition:

Public Methods

bool operator) (const Argument& arg, bool& val) const
bool operator) (const Event& event, bool& val) const
static const Condition& True()
static const Condition& False()

Protected Methods

Condition& operator= (const Condition&)

Documentation

Defines an event condition for comparing event functions
enum operation
Comparison operations supported by the condition.

opEqual
Always true

opUnequal
Always false

opLess
identity condition

opLessEqual
not condition

opGreater
and condition

opGreaterEqual
or condition

Comparison(const Function& f1, const Function& f2, operation op, double tolerance = 0.0)
Creates an column condition between two columns.

Comparison(const Comparison& cond, const Function& f, operation op, double tolerance = 0.0)
Creates an column condition between a condition and a fucntion. This allows for expression such as "3 < Column ("Amplitude") < 5".

virtual Comparison* Copy() const
Returns a copy of the event condition. This method must be overriden by all descendents.
Returns:
event copy

virtual bool Evaluate(const Argument& arg, bool& val) const
Evaluate the condition.
Returns:
True if condition could be evaluated
Parameters:
arg - Event argument list
val - Condition value (return)

Comparison()
Default constructor

virtual bool ValueR(const Argument& arg, Value& val) const
Get the right hand side value of the left hand side argument!
Returns:
True if value is defined
Parameters:
arg - Event argument list
x - Right hand side value


This class has no child classes.
Author:
Written June 2001 by Masahiro Ito and Daniel Sigg
Version:
1.0

alphabetic index hierarchy of classes


Please send questions and comments to sigg_d@ligo-wa.caltech.edu


generated by doc++