MBSim |
Project Page |
template class for constant functions with one parameter and scalar return value More...
#include <function.h>
Public Member Functions | |
| ConstantFunction1 () | |
| constructor | |
| ConstantFunction1 (double c_) | |
| constructor | |
| virtual double | operator() (const Arg &p, const void *=NULL) |
| void | initializeUsingXML (MBXMLUtils::TiXmlElement *element) |
| initialize function with XML code | |
| virtual MBXMLUtils::TiXmlElement * | writeXMLFile (MBXMLUtils::TiXmlNode *parent) |
| std::string | getType () const |
| void | setValue (double c_) |
Protected Attributes | |
| double | c |
| constant return value | |
template class for constant functions with one parameter and scalar return value
| MBSim::ConstantFunction1< double, Arg >::ConstantFunction1 | ( | double | c_ | ) | [inline] |
constructor
| constant | return value |
| std::string MBSim::ConstantFunction1< double, Arg >::getType | ( | ) | const [inline, virtual] |
Reimplemented from MBSim::Function1< double, Arg >.
| void MBSim::ConstantFunction1< double, Arg >::initializeUsingXML | ( | MBXMLUtils::TiXmlElement * | element | ) | [inline, virtual] |
initialize function with XML code
| XML | element |
Reimplemented from MBSim::Function1< double, Arg >.
| virtual double MBSim::ConstantFunction1< double, Arg >::operator() | ( | const Arg & | x, |
| const void * | = NULL |
||
| ) | [inline, virtual] |
| argument | of function |
| optional | parameter class |
Implements MBSim::Function1< double, Arg >.
1.8.0