Public Member Functions

nitro::FunctionWrapper< void > Class Template Reference

#include <utilities/testing_utilities.h>

List of all members.

Public Member Functions

int operator() (void(*CallingFunction)(void))
template<class type1 >
int operator() (void(*CallingFunction)(type1), type1 &Param1)
template<class type1 , class type2 >
int operator() (void(*CallingFunction)(type1, type2), type1 &Param1, type2 &Param2)
template<class type1 , class type2 , class type3 >
int operator() (void(*CallingFunction)(type1, type2, type3), type1 &Param1, type2 &Param2, type3 &Param3)
template<class type1 , class type2 , class type3 , class type4 >
int operator() (void(*CallingFunction)(type1, type2, type3, type4), type1 &Param1, type2 &Param2, type3 &Param3, type4 &Param4)
template<class type1 , class type2 , class type3 , class type4 , class type5 >
int operator() (void(*CallingFunction)(type1, type2, type3, type4, type5), type1 &Param1, type2 &Param2, type3 &Param3, type4 &Param4, type5 &Param5)

Detailed Description

template<>
class nitro::FunctionWrapper< void >

Definition at line 253 of file testing_utilities.h.


Member Function Documentation

int nitro::FunctionWrapper< void >::operator() ( void(*)(void)  CallingFunction  )  [inline]

Wrapper calls function without any parameter.

Parameters:
CallingFunction - Calling function
Returns:
Always 0.
Author:
Dododnov A.A.

Definition at line 274 of file testing_utilities.h.

                {
                        CallingFunction();
                        return( 0 );
                }

template<class type1 , class type2 , class type3 , class type4 , class type5 >
int nitro::FunctionWrapper< void >::operator() ( void(*)(type1, type2, type3, type4, type5)  CallingFunction,
type1 &  Param1,
type2 &  Param2,
type3 &  Param3,
type4 &  Param4,
type5 &  Param5 
) [inline]

Wrapper calls function with 3 parameters.

Parameters:
CallingFunction - Calling function
Param1 - Parameter of the wrapped function.
Param2 - Parameter of the wrapped function.
Param3 - Parameter of the wrapped function.
Param4 - Parameter of the wrapped function.
Param5 - Parameter of the wrapped function.
Returns:
Always 0.
Author:
Dododnov A.A.

Definition at line 459 of file testing_utilities.h.

                {
                        CallingFunction( Param1 , Param2 , Param3 , Param4 , Param5 );
                        return( 0 );
                }

template<class type1 , class type2 , class type3 , class type4 >
int nitro::FunctionWrapper< void >::operator() ( void(*)(type1, type2, type3, type4)  CallingFunction,
type1 &  Param1,
type2 &  Param2,
type3 &  Param3,
type4 &  Param4 
) [inline]

Wrapper calls function with 3 parameters.

Parameters:
CallingFunction - Calling function
Param1 - Parameter of the wrapped function.
Param2 - Parameter of the wrapped function.
Param3 - Parameter of the wrapped function.
Param4 - Parameter of the wrapped function.
Returns:
Always 0.
Author:
Dododnov A.A.

Definition at line 414 of file testing_utilities.h.

                {
                        CallingFunction( Param1 , Param2 , Param3 , Param4 );
                        return( 0 );
                }

template<class type1 , class type2 , class type3 >
int nitro::FunctionWrapper< void >::operator() ( void(*)(type1, type2, type3)  CallingFunction,
type1 &  Param1,
type2 &  Param2,
type3 &  Param3 
) [inline]

Wrapper calls function with 3 parameters.

Parameters:
CallingFunction - Calling function
Param1 - Parameter of the wrapped function.
Param2 - Parameter of the wrapped function.
Param3 - Parameter of the wrapped function.
Returns:
Always 0.
Author:
Dododnov A.A.

Definition at line 373 of file testing_utilities.h.

                {
                        CallingFunction( Param1 , Param2 , Param3 );
                        return( 0 );
                }

template<class type1 , class type2 >
int nitro::FunctionWrapper< void >::operator() ( void(*)(type1, type2)  CallingFunction,
type1 &  Param1,
type2 &  Param2 
) [inline]

Wrapper calls function with 2 parameters.

Parameters:
CallingFunction - Calling function
Param1 - Parameter of the wrapped function.
Param2 - Parameter of the wrapped function.
Returns:
Always 0.
Author:
Dododnov A.A.

Definition at line 336 of file testing_utilities.h.

                {
                        CallingFunction( Param1 , Param2 );
                        return( 0 );
                }

template<class type1 >
int nitro::FunctionWrapper< void >::operator() ( void(*)(type1)  CallingFunction,
type1 &  Param1 
) [inline]

Wrapper calls function with 1 parameter.

Parameters:
CallingFunction - Calling function
Param1 - Parameter of the wrapped function.
Returns:
Always 0.
Author:
Dododnov A.A.

Definition at line 303 of file testing_utilities.h.

                {
                        CallingFunction( Param1 );
                        return( 0 );
                }


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

Generated by  doxygen 1.6.1