afl::OnTopOf Class Reference

#include <functions.h>

Inheritance diagram for afl::OnTopOf:

afl::Function List of all members.

Public Member Functions

 OnTopOf (Function *arg1, Function *arg2)
virtual data_t evaluate (const Point &p, Function::Context *ctxt) const
virtual void serialise (std::ostream &doc) const
virtual Functionclone () const

Detailed Description

use one function where available, or the other when it is not


Constructor & Destructor Documentation

afl::OnTopOf::OnTopOf Function arg1,
Function arg2
 

Parameters:
arg1 the first function to try
arg2 if arg1 is not defined at a point, arg2 is used


Member Function Documentation

virtual Function* afl::OnTopOf::clone  )  const [virtual]
 

Returns:
an exact copy of this function

Implements afl::Function.

virtual data_t afl::OnTopOf::evaluate const Point p,
Function::Context ctxt
const [virtual]
 

evaluates the function

Parameters:
p the location to evaluate the function at
ctxt the context for the evaluation
Returns:
the value of the field at (x,y,z,t)

Implements afl::Function.

virtual void afl::OnTopOf::serialise std::ostream &  doc  )  const [virtual]
 

adds the symbolic value of the function to an output stream

Parameters:
doc the output stream to put the function on

Implements afl::Function.


The documentation for this class was generated from the following file:
Generated on Fri Dec 22 07:17:51 2006 for afl by  doxygen 1.4.6