20 #ifndef _LINEAR_FUNCTION_H_
21 #define _LINEAR_FUNCTION_H_
23 #include "mbsim/functions/function.h"
24 #include "mbsim/utils/utils.h"
30 template<
typename Ret,
typename Arg>
38 int getArgSize()
const override {
return 1; }
39 std::pair<int, int> getRetSize()
const override {
return std::make_pair(1,1); }
44 void initializeUsingXML(xercesc::DOMElement *element)
override {
45 xercesc::DOMElement *e=MBXMLUtils::E(element)->getFirstElementChildNamed(MBSIM%
"a0");
46 if(e) a0=MBXMLUtils::E(e)->getText<
double>();
47 e=MBXMLUtils::E(element)->getFirstElementChildNamed(MBSIM%
"a1");
48 a1=MBXMLUtils::E(e)->getText<
double>();
50 void seta0(
double a0_) { a0 = a0_; }
51 void seta1(
double a1_) { a1 = a1_; }
Definition: planar_contour.h:30
Definition: linear_function.h:28