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 > MBSim::Function

List of all members.

Public Member Functions

 ConstantFunction1 ()
 constructor
 ConstantFunction1 (Ret c_)
 constructor
virtual Ret 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 (Ret c_)

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 >
std::string MBSim::ConstantFunction1< Ret, Arg >::getType ( ) const [inline, virtual]
Returns:
std::string representation

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

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

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 
) [inline, virtual]
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: