MBSim

Project Page
Public Member Functions | Protected Attributes
MBSim::ConstantFunction2< double, Arg1, Arg2 > Class Template Reference

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

#include <function.h>

Inheritance diagram for MBSim::ConstantFunction2< double, Arg1, Arg2 >:
MBSim::Function2< double, Arg1, Arg2 >

List of all members.

Public Member Functions

 ConstantFunction2 ()
 constructor
 ConstantFunction2 (double c_)
 constructor
virtual double operator() (const Arg1 &p1, const Arg2 &p2, const void *=NULL)
void initializeUsingXML (TiXmlElement *element)
 initialize function with XML code
void setValue (double c_)
- Public Member Functions inherited from MBSim::Function2< double, Arg1, Arg2 >
virtual ~Function2 ()
 destructor

Protected Attributes

double c

Detailed Description

template<class Arg1, class Arg2>
class MBSim::ConstantFunction2< double, Arg1, Arg2 >

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

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

Constructor & Destructor Documentation

template<class Arg1 , class Arg2 >
MBSim::ConstantFunction2< double, Arg1, Arg2 >::ConstantFunction2 ( double  c_)
inline

constructor

Parameters:
constantreturn value

Member Function Documentation

template<class Arg1 , class Arg2 >
void MBSim::ConstantFunction2< double, Arg1, Arg2 >::initializeUsingXML ( TiXmlElement *  element)
inlinevirtual

initialize function with XML code

Parameters:
XMLelement

Reimplemented from MBSim::Function2< double, Arg1, Arg2 >.

template<class Arg1 , class Arg2 >
virtual double MBSim::ConstantFunction2< double, Arg1, Arg2 >::operator() ( const Arg1 &  p1,
const Arg2 &  p2,
const void *  = NULL 
)
inlinevirtual
Returns:
return value of function
Parameters:
argumentof function
optionalparameter class

Implements MBSim::Function2< double, Arg1, Arg2 >.


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