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 >

List of all members.

Public Member Functions

 ConstantFunction1 ()
 constructor
 ConstantFunction1 (double c_)
 constructor
virtual double operator() (const Arg &p, const void *=NULL)
void initializeUsingXML (TiXmlElement *element)
 initialize function with XML code
void setValue (double c_)
- Public Member Functions inherited from MBSim::Function1< double, Arg >
virtual ~Function1 ()
 destructor

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 >
void MBSim::ConstantFunction1< double, Arg >::initializeUsingXML ( TiXmlElement *  element)
inlinevirtual

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 
)
inlinevirtual
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: