In file ConditionLogic.hh:

namespace events class ConditionLogic : public Condition

Defines an event condition

Inheritance:


Public Classes

enum operation
Boolean operations.
opFalse
Always false
opTrue
Always true
opIdentity
identity condition
opNot
not condition
opAnd
and condition
opOr
or condition
opXor
xor condition

Public Methods

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

Protected Methods

ConditionLogic ()
Default constructor

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

A boolean expression for event conditions.

enum operation
Boolean operations supported by the condition.

opFalse
Always false

opTrue
Always true

opIdentity
identity condition

opNot
not condition

opAnd
and condition

opOr
or condition

opXor
xor condition

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

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

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

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

virtual ConditionLogic* 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)

ConditionLogic()
Default constructor


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++