#include <functions.h>
Inheritance diagram for afl::Function:
Public Types | |
typedef FunctionIterator | iterator |
Public Member Functions | |
virtual data_t | evaluate (const Point &p, Context *ctxt=NULL) const =0 |
virtual void | serialise (std::ostream &doc) const =0 |
virtual Function * | clone () const =0 |
iterator | begin () |
iterator | end () |
Protected Attributes | |
std::vector< Function * > | _args |
Classes | |
struct | Context |
|
an iterator to traverse function trees |
|
an iterator pointing at this function |
|
Implemented in afl::FieldFn, afl::Negate, afl::Argument, afl::BasisArgument, afl::BasisArgument_1, afl::BasisArgument_2, afl::BasisArgument_3, afl::BasisArgument_4, afl::KsiBasisArgument_1, afl::KsiBasisArgument_2, afl::KsiBasisArgument_3, afl::KsiBasisArgument_4, afl::Constant, afl::Sum, afl::Subtract, afl::Multiply, afl::Divide, afl::Power, afl::OnTopOf, afl::Sin, afl::ArcSin, afl::Cos, afl::ArcCos, afl::Tan, afl::ArcTan, afl::Cot, afl::Ln, afl::Exp, afl::Sqrt, afl::Abs, afl::Min, and afl::Max. |
|
a terminating iterator that points at nothing |
|
evaluates the function
Implemented in afl::FieldFn, afl::Negate, afl::Argument, afl::BasisArgument, afl::BasisArgument_1, afl::BasisArgument_2, afl::BasisArgument_3, afl::BasisArgument_4, afl::KsiBasisArgument_1, afl::KsiBasisArgument_2, afl::KsiBasisArgument_3, afl::KsiBasisArgument_4, afl::Constant, afl::Sum, afl::Subtract, afl::Multiply, afl::Divide, afl::Power, afl::OnTopOf, afl::Sin, afl::ArcSin, afl::Cos, afl::ArcCos, afl::Tan, afl::ArcTan, afl::Cot, afl::Ln, afl::Exp, afl::Sqrt, afl::Abs, afl::Min, and afl::Max. |
|
adds the symbolic value of the function to an output stream
Implemented in afl::FieldFn, afl::Negate, afl::Argument, afl::BasisArgument, afl::KsiBasisArgument_1, afl::KsiBasisArgument_2, afl::KsiBasisArgument_3, afl::KsiBasisArgument_4, afl::Constant, afl::Sum, afl::Subtract, afl::Multiply, afl::Divide, afl::Power, afl::OnTopOf, afl::Sin, afl::ArcSin, afl::Cos, afl::ArcCos, afl::Tan, afl::ArcTan, afl::Cot, afl::Ln, afl::Exp, afl::Sqrt, afl::Abs, afl::Min, and afl::Max. |
|
any functions that this function takes as arguments |