In file Comparison.hh:

class Comparison

Defines an event condition for comparing event functions

Inheritance:


Public Methods

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

Public Members

[more]enum operation
Comparison operations.

Protected Methods

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


Inherited from Condition:

Public Methods

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

Protected Methods

oCondition& operator= (const Condition&)


Documentation

A event conditions for comparing event functions.

oenum operation
Comparison operations supported by the condition.

o opEqual
Always true

o opUnequal
Always false

o opLess
identity condition

o opLessEqual
not condition

o opGreater
and condition

o opGreaterEqual
or condition

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

o 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".

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

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

o Comparison()
Default constructor.

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


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

Alphabetic index HTML hierarchy of classes or Java


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