BaseExperiment::OperationWrapperTwoParameters< T, P0, P1 > Class Template Reference

The class for operation wrappers taking two parameters. More...

Inheritance diagram for BaseExperiment::OperationWrapperTwoParameters< T, P0, P1 >:

Public Member Functions

 OperationWrapperTwoParameters (T *experiment, void(T::*operation)(P0, P1), P0 p0, P1 p1)
 Constructor. More...
 
const P0 & p0 () const
 Returns the first parameter that is passed to the function. More...
 
const P1 & p1 () const
 Returns the second parameter that is passed to the function. More...
 
- Public Member Functions inherited from BaseExperiment::AbstractOperationWrapper
QString getName () const
 Returns the name of the operation. More...
 
bool getSteppable () const
 Returns true if the operation can be run step-by-step. More...
 
bool getUseSeparateThread () const
 Returns true if the operation is run in a separate thread. More...
 

Detailed Description

template<class T, class P0, class P1>
class farsa::BaseExperiment::OperationWrapperTwoParameters< T, P0, P1 >

The class for operation wrappers taking two parameters.

This class is needed to be able to add and use operations from derived classes that take two parameters

Definition at line 574 of file baseexperiment.h.

Constructor & Destructor Documentation

OperationWrapperTwoParameters ( T *  experiment,
void(T::*)(P0, P1)  operation,
P0  p0,
P1  p1 
)
inline

Constructor.

Parameters
experimentthe pointer to the experiment
operationthe pointer to the member function of experiment implementing the operation
p0the first parameter that is passed to the function
p1the second parameter that is passed to the function

Definition at line 586 of file baseexperiment.h.

Member Function Documentation

const P0& p0 ( ) const
inline

Returns the first parameter that is passed to the function.

Returns
the first parameter that is passed to the function

Definition at line 601 of file baseexperiment.h.

const P1& p1 ( ) const
inline

Returns the second parameter that is passed to the function.

Returns
the second parameter that is passed to the function

Definition at line 612 of file baseexperiment.h.


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