MBSim

Project Page
Public Member Functions | Protected Attributes
MBSim::ConstantFunction1< double, Arg > Class Template Reference

template class for constant functions with one parameter and scalar return value More...

#include <function.h>

Inheritance diagram for MBSim::ConstantFunction1< double, Arg >:
MBSim::Function1< double, Arg > MBSim::Function

List of all members.

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

Detailed Description

template<class Arg>
class MBSim::ConstantFunction1< double, Arg >

template class for constant functions with one parameter and scalar return value

Author:
Markus Friedrich
Date:
2009-08-31 some comments (Thorsten Schindler)

Constructor & Destructor Documentation

template<class Arg >
MBSim::ConstantFunction1< double, Arg >::ConstantFunction1 ( double  c_) [inline]

constructor

Parameters:
constantreturn value

Member Function Documentation

template<class Arg >
std::string MBSim::ConstantFunction1< double, Arg >::getType ( ) const [inline, virtual]
Returns:
std::string representation

Reimplemented from MBSim::Function1< double, Arg >.

template<class Arg >
void MBSim::ConstantFunction1< double, Arg >::initializeUsingXML ( MBXMLUtils::TiXmlElement *  element) [inline, virtual]

initialize function with XML code

Parameters:
XMLelement

Reimplemented from MBSim::Function1< double, Arg >.

template<class Arg >
virtual double MBSim::ConstantFunction1< double, Arg >::operator() ( const Arg &  x,
const void *  = NULL 
) [inline, virtual]
Returns:
return value of function
Parameters:
argumentof function
optionalparameter class

Implements MBSim::Function1< double, Arg >.


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