In file ConditionLogic.hh:

class ConditionLogic

Defines an event condition

Inheritance:


Public Methods

[more]explicit ConditionLogic (operation op)
Constructor
[more]explicit ConditionLogic (bool value)
Constructor
[more]explicit ConditionLogic (const Condition& cond, operation op = opIdentity)
Constructor
[more]explicit ConditionLogic (const Condition& cond1, const Condition& cond2, operation op)
Constructor
[more]virtual ConditionLogic* Copy () const
Copy the event
[more]virtual bool Evaluate (const Argument& arg, bool& val) const
Evaluate

Public Members

[more]enum operation
Boolean operations.

Protected Methods

[more] ConditionLogic ()
Default constructor


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 boolean expression for event conditions.

oenum operation
Boolean operations supported by the condition.

o opFalse
Always false

o opTrue
Always true

o opIdentity
identity condition

o opNot
not condition

o opAnd
and condition

o opOr
or condition

o opXor
xor condition

oexplicit ConditionLogic(operation op)
Creates an event boolean condition with zero arguments.

oexplicit ConditionLogic(bool value)
Creates an event boolean condition with zero arguments.

oexplicit ConditionLogic(const Condition& cond, operation op = opIdentity)
Creates an event boolean condition with one argument.

oexplicit ConditionLogic(const Condition& cond1, const Condition& cond2, operation op)
Creates an event boolean condition with two arguments.

ovirtual ConditionLogic* 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 ConditionLogic()
Default constructor.


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