Public Member Functions

nitro::FunctionWrapper< ret_value_type > Class Template Reference

Class wrapps function call. More...

#include <utilities/testing_utilities.h>

List of all members.

Public Member Functions

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

Detailed Description

template<class ret_value_type>
class nitro::FunctionWrapper< ret_value_type >

Class wrapps function call.

Class wrapps function call (in case function returns void).

Author:
Dododnov A.A.

Definition at line 33 of file testing_utilities.h.


Member Function Documentation

template<class ret_value_type >
ret_value_type nitro::FunctionWrapper< ret_value_type >::operator() ( ret_value_type(*)(void)  CallingFunction  )  [inline]

Wrapper calls function without any parameter.

Parameters:
CallingFunction - Calling function
Returns:
Result of the function CallingFunction.
Author:
Dododnov A.A.

Definition at line 54 of file testing_utilities.h.

                {
                        return( CallingFunction() );
                }

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

Definition at line 235 of file testing_utilities.h.

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

template<class ret_value_type >
template<class type1 , class type2 , class type3 , class type4 >
ret_value_type nitro::FunctionWrapper< ret_value_type >::operator() ( ret_value_type(*)(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:
Result of the function CallingFunction.
Author:
Dododnov A.A.

Definition at line 191 of file testing_utilities.h.

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

template<class ret_value_type >
template<class type1 , class type2 , class type3 >
ret_value_type nitro::FunctionWrapper< ret_value_type >::operator() ( ret_value_type(*)(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:
Result of the function CallingFunction.
Author:
Dododnov A.A.

Definition at line 151 of file testing_utilities.h.

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

template<class ret_value_type >
template<class type1 , class type2 >
ret_value_type nitro::FunctionWrapper< ret_value_type >::operator() ( ret_value_type(*)(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:
Result of the function CallingFunction.
Author:
Dododnov A.A.

Definition at line 115 of file testing_utilities.h.

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

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

Wrapper calls function with 1 parameter.

Parameters:
CallingFunction - Сalling function
Param1 - Parameter of the wrapped function.
Returns:
Result of the function CallingFunction.
Author:
Dododnov A.A.

Definition at line 82 of file testing_utilities.h.

                {
                        return( CallingFunction( Param1 ) );
                }


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

Generated by  doxygen 1.6.1