MBSim

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

template class for constant functions with one parameter More...

#include <function.h>

Inheritance diagram for MBSim::ConstantFunction1< Ret, Arg >:
MBSim::Function1< Ret, Arg >

List of all members.

Public Member Functions

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

Protected Attributes

Ret c
 constant return value

Detailed Description

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

template class for constant functions with one parameter

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

Constructor & Destructor Documentation

template<class Ret , class Arg >
MBSim::ConstantFunction1< Ret, Arg >::ConstantFunction1 ( Ret  c_)
inline

constructor

Parameters:
constantreturn value

Member Function Documentation

template<class Ret , class Arg >
void MBSim::ConstantFunction1< Ret, Arg >::initializeUsingXML ( TiXmlElement *  element)
inlinevirtual

initialize function with XML code

Parameters:
XMLelement

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

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

Implements MBSim::Function1< Ret, Arg >.


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