MBSim

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

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

#include <function.h>

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

List of all members.

Public Member Functions

 ConstantFunction2 ()
 constructor
 ConstantFunction2 (Ret c_)
 constructor
virtual Ret operator() (const Arg1 &p1, const Arg2 &p2, const void *=NULL)
void initializeUsingXML (MBXMLUtils::TiXmlElement *element)
 initialize function with XML code
void setValue (Ret c_)

Protected Attributes

Ret c
 constant return value

Detailed Description

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

template class for constant functions with two parameter

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

Constructor & Destructor Documentation

template<class Ret , class Arg1 , class Arg2 >
MBSim::ConstantFunction2< Ret, Arg1, Arg2 >::ConstantFunction2 ( Ret  c_) [inline]

constructor

Parameters:
constantreturn value

Member Function Documentation

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

initialize function with XML code

Parameters:
XMLelement

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

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

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


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