CYCLUS
|
A concrete factory that can provide access to basic symbolic functions.
Definition at line 93 of file symbolic_function_factories.h.
#include <symbolic_function_factories.h>
Public Types | |
enum | FunctionType { LIN , EXP } |
Public Member Functions | |
BasicFunctionFactory () | |
SymFunction::Ptr | GetFunctionPtr (std::string type, std::string params) |
The type of functions this factory can provide.
Enumerator | |
---|---|
LIN | See cyclus::toolkit::LinFunctionFactory for a description of function parameters. |
EXP | See cyclus::toolkit::ExpFunctionFactory for a description of function parameters. |
Definition at line 96 of file symbolic_function_factories.h.
cyclus::toolkit::BasicFunctionFactory::BasicFunctionFactory | ( | ) |
Constructor sets up the enum names map.
Definition at line 82 of file symbolic_function_factories.cc.
SymFunction::Ptr cyclus::toolkit::BasicFunctionFactory::GetFunctionPtr | ( | std::string | type, |
std::string | params ) |
Return a function pointer to a registered function type.
type | the function type, see BasicFunctionFactory::FunctionType for supported function types. For each supported function type, either the full name or the first three letters are acceptable. For example, for a "linear" function, either "linear" or "lin" are acceptable. |
params | the function parameters |
Definition at line 92 of file symbolic_function_factories.cc.