20 #ifndef _CONTINUED_FUNCTION_H_
21 #define _CONTINUED_FUNCTION_H_
23 #include "mbsim/functions/function.h"
29 template<
typename Ret,
typename Arg>
35 int getArgSize()
const {
return f->getArgSize(); }
36 Ret operator()(
const Arg &x) {
return (*f)((*rule)(x)); }
37 typename B::DRetDArg parDer(
const Arg &x) {
return f->parDer((*rule)(x)); }
38 typename B::DRetDArg parDerDirDer(
const Arg &xDir,
const Arg &x) {
return f->parDerDirDer(xDir,(*rule)(x)); }
39 typename B::DDRetDDArg parDerParDer(
const Arg &x) {
return f->parDerParDer((*rule)(x)); }
40 void setFunction(
Function<Ret(Arg)> *f_) {
43 f->setName(
"Function");
45 void setContinuationRule(
Function<Arg(Arg)> *rule_) {
47 rule->setParent(
this);
48 rule->setName(
"ContinuationRule");
50 void initializeUsingXML(xercesc::DOMElement *element) {
51 xercesc::DOMElement *e=MBXMLUtils::E(element)->getFirstElementChildNamed(MBSIM%
"function");
53 e=MBXMLUtils::E(element)->getFirstElementChildNamed(MBSIM%
"continuationRule");
Definition: continued_function.h:27
void init(Element::InitStage stage)
plots time series header
Definition: continued_function.h:56
InitStage
The stages of the initialization.
Definition: element.h:97
Definition: planar_contour.h:31
virtual void init(InitStage stage)
plots time series header
Definition: element.cc:70
Definition: element.h:104
static ContainerType * createAndInit(const xercesc::DOMElement *element)
Definition: objectfactory.h:87