CYCLUS
Public Member Functions | List of all members
cyclus::toolkit::LinFunctionFactory Class Reference

Detailed Description

A concrete factory for linear functions.

Definition at line 27 of file symbolic_function_factories.h.

#include <symbolic_function_factories.h>

Inheritance diagram for cyclus::toolkit::LinFunctionFactory:
cyclus::toolkit::SymbFunctionFactory

Public Member Functions

virtual SymFunction::Ptr GetFunctionPtr (std::string params)
 
- Public Member Functions inherited from cyclus::toolkit::SymbFunctionFactory
virtual ~SymbFunctionFactory ()
 

Member Function Documentation

SymFunction::Ptr cyclus::toolkit::LinFunctionFactory::GetFunctionPtr ( std::string  params)
virtual

Return a function pointer to a linear function.

Parameters
paramsa string of space-separated values for m and b in the equation

\[ y = mx + b \]

Returns
the linear function

Example

SymFunction::Ptr func = fac.GetFunctionPtr("2.5 5"); // y = 2.5x + 5

Implements cyclus::toolkit::SymbFunctionFactory.

Definition at line 10 of file symbolic_function_factories.cc.


The documentation for this class was generated from the following files: