In file Function.hh:

class Function

Defines an event

Inheritance:


Public Methods

[more] Function ()
Default constructor
[more]virtual ~Function ()
Denstructor
[more]virtual Function* Copy () const
Copy the event function
[more]virtual bool Evaluate (const Argument& arg, Value& val) const
Function value
[more]bool operator() (const Argument& arg, Value& val) const
() operator
[more]bool operator() (const Event& event, Value& val) const
() operator

Protected Methods

[more] Function (const Function&)
Copy constructor
[more]Function& operator= (const Function&)
Assignment operator


Documentation

This is an abstract class for defining functions on events.

o Function()
Creates an event function.

ovirtual ~Function()
Destructs an event function.

ovirtual Function* Copy() const = 0
Returns a copy of the event function. This method must be overriden by all descendents.
Returns:
event function copy

ovirtual bool Evaluate(const Argument& arg, Value& val) const = 0
Returns the value of the function. This function must be overriden by descendents. The function returns true if it could be evaluated and false otherwise.

Parameters:
- arg Event argument list
val - value (return)
Returns:
True if function could be evaluated

obool operator() (const Argument& arg, Value& val) const
Function call operator. Returns the same as Evaluate (should not be overriden).

Parameters:
- arg Event argument list
val - Value (return)
Returns:
True if function could be evaluated

obool operator() (const Event& event, Value& val) const
Function call operator. Evaluates a function on a single event (should not be overriden).
Parameters:
- arg Event argument list
val - Value (return)
Returns:
True if function could be evaluated

o Function(const Function&)
Copy constructor. This is almost never intended, so just disable it from the outside.

oFunction& operator= (const Function&)
Assignment operator. This is almost never intended, so just disable it from the outside.


Direct child classes:
Value
ShiftFunction
Math
Info
TVal
SVal
RVal
IVal
CVal
Column
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