libFAUDES

Sections

Index

faudes::TNestedFunction< FTYPE, CFNCT > Class Template Reference

#include <rtiwrapper.h>

Inherits faudes::Function.

List of all members.


Detailed Description

template<class FTYPE, void(*)(const FTYPE &, const FTYPE &, FTYPE &) CFNCT>
class faudes::TNestedFunction< FTYPE, CFNCT >

A TNestedFunction derives a class from Function to invoke a c-function repeatavely.

Technicalls, it is a template class and it takes the argument type and the c-function as template parameters. The c-function must take three parameters, the first two const.

Definition at line 178 of file rtiwrapper.h.


Public Member Functions

 TNestedFunction (const FunctionDefinition *fdef)
virtual FunctionNew () const
 Construct on heap.

Protected Member Functions

virtual bool DoTypeCheck (int n)
 Method to test the type of an assigned parameter with the specified faudes::Signature (i.e.
virtual void DoExecute (void)
 Executes code of reimplemented method of child class(es).

Protected Attributes

std::vector< FTYPE * > pvec

Constructor & Destructor Documentation

template<class FTYPE, void(*)(const FTYPE &, const FTYPE &, FTYPE &) CFNCT>
faudes::TNestedFunction< FTYPE, CFNCT >::TNestedFunction ( const FunctionDefinition fdef  )  [inline]

Definition at line 183 of file rtiwrapper.h.


Member Function Documentation

template<class FTYPE, void(*)(const FTYPE &, const FTYPE &, FTYPE &) CFNCT>
virtual Function* faudes::TNestedFunction< FTYPE, CFNCT >::New (  )  const [inline, virtual]

Construct on heap.

Create a new instance of this function class and return pointer. The new instance will use the same function definition as this instance.

Returns:
Pointer to faudes::Function instance.

Implements faudes::Function.

Definition at line 186 of file rtiwrapper.h.

template<class FTYPE, void(*)(const FTYPE &, const FTYPE &, FTYPE &) CFNCT>
virtual bool faudes::TNestedFunction< FTYPE, CFNCT >::DoTypeCheck ( int  n  )  [inline, protected, virtual]

Method to test the type of an assigned parameter with the specified faudes::Signature (i.e.

their TypeDefinition label).

Note: this method is called by Function::Execute() before actual function execution via DoExecute(). It may be used to perform a dynamic cast in preparation of DoExecute(). The latter is only called, if all types match.

Parameters:
n Position of parameter to check
Returns:
True if type matches signature.
Exceptions:
Exception 

Implements faudes::Function.

Definition at line 194 of file rtiwrapper.h.

template<class FTYPE, void(*)(const FTYPE &, const FTYPE &, FTYPE &) CFNCT>
virtual void faudes::TNestedFunction< FTYPE, CFNCT >::DoExecute ( void   )  [inline, protected, virtual]

Executes code of reimplemented method of child class(es).

Implements faudes::Function.

Definition at line 207 of file rtiwrapper.h.


Member Data Documentation

template<class FTYPE, void(*)(const FTYPE &, const FTYPE &, FTYPE &) CFNCT>
std::vector<FTYPE*> faudes::TNestedFunction< FTYPE, CFNCT >::pvec [protected]

Definition at line 186 of file rtiwrapper.h.


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

libFAUDES 2.14g --- 2009-12-3 --- c++ source docu by doxygen 1.5.6