Class wrapps function call. More...
#include <utilities/testing_utilities.h>
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) |
Class wrapps function call.
Class wrapps function call (in case function returns void).
Definition at line 33 of file testing_utilities.h.
ret_value_type nitro::FunctionWrapper< ret_value_type >::operator() | ( | ret_value_type(*)(void) | CallingFunction | ) | [inline] |
Wrapper calls function without any parameter.
CallingFunction | - Calling function |
Definition at line 54 of file testing_utilities.h.
{
return( CallingFunction() );
}
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 ) );
}
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.
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. |
Definition at line 191 of file testing_utilities.h.
{
return( CallingFunction( Param1 , Param2 , Param3 , Param4 ) );
}
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.
CallingFunction | - Calling function | |
Param1 | - Parameter of the wrapped function. | |
Param2 | - Parameter of the wrapped function. | |
Param3 | - Parameter of the wrapped function. |
Definition at line 151 of file testing_utilities.h.
{
return( CallingFunction( Param1 , Param2 , Param3 ) );
}
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.
CallingFunction | - Calling function | |
Param1 | - Parameter of the wrapped function. | |
Param2 | - Parameter of the wrapped function. |
Definition at line 115 of file testing_utilities.h.
{
return( CallingFunction( Param1 , Param2 ) );
}
ret_value_type nitro::FunctionWrapper< ret_value_type >::operator() | ( | ret_value_type(*)(type1) | CallingFunction, | |
type1 & | Param1 | |||
) | [inline] |
Wrapper calls function with 1 parameter.
CallingFunction | - Сalling function | |
Param1 | - Parameter of the wrapped function. |
Definition at line 82 of file testing_utilities.h.
{
return( CallingFunction( Param1 ) );
}