Public Member Functions

nitro::MemberFunctionWrapper< ret_value_type > Class Template Reference

Class wrapps member-function call. More...

#include <utilities/testing_utilities.h>

List of all members.

Public Member Functions

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

Detailed Description

template<class ret_value_type>
class nitro::MemberFunctionWrapper< ret_value_type >

Class wrapps member-function call.

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

Author:
Dododnov A.A.

Definition at line 478 of file testing_utilities.h.


Member Function Documentation

template<class ret_value_type >
template<class class_type >
ret_value_type nitro::MemberFunctionWrapper< ret_value_type >::operator() ( ret_value_type(class_type::*)(void) const   CallingFunction,
class_type &  ob 
) [inline]

Wrapper calls function without any parameter.

Parameters:
CallingFunction - Calling function
ob - Object wich will call function.
Returns:
Result of the function CallingFunction.
Author:
Dododnov A.A.

Definition at line 504 of file testing_utilities.h.

                {
                        return( ( ( &ob )->*CallingFunction )() );
                }

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

Wrapper calls function with 5 parameters.

Parameters:
CallingFunction - Calling function
ob - Object wich will call 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:
Result of the function CallingFunction.
Author:
Dododnov A.A.

Definition at line 932 of file testing_utilities.h.

                {
                        return( ( ( &ob )->*CallingFunction )( Param1 , Param2 , Param3 , Param4 , Param5 ) );
                }

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

Wrapper calls function with 5 parameters.

Parameters:
CallingFunction - Calling function
ob - Object wich will call 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:
Result of the function CallingFunction.
Author:
Dododnov A.A.

Definition at line 884 of file testing_utilities.h.

                {
                        return( ( ( &ob )->*CallingFunction )( Param1 , Param2 , Param3 , Param4 , Param5 ) );
                }

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

Wrapper calls function with 4 parameters.

Parameters:
CallingFunction - Calling function
ob - Object wich will call 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 836 of file testing_utilities.h.

                {
                        return( ( ( &ob )->*CallingFunction )( Param1 , Param2 , Param3 , Param4 ) );
                }

template<class ret_value_type >
template<class class_type , class type1 , class type2 , class type3 , class type4 >
ret_value_type nitro::MemberFunctionWrapper< ret_value_type >::operator() ( ret_value_type(class_type::*)(type1, type2, type3, type4) const   CallingFunction,
class_type &  ob,
type1 &  Param1,
type2 &  Param2,
type3 &  Param3,
type4 &  Param4 
) [inline]

Wrapper calls function with 4 parameters.

Parameters:
CallingFunction - Calling function
ob - Object wich will call 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 792 of file testing_utilities.h.

                {
                        return( ( ( &ob )->*CallingFunction )( Param1 , Param2 , Param3 , Param4 ) );
                }

template<class ret_value_type >
template<class class_type , class type1 , class type2 , class type3 >
ret_value_type nitro::MemberFunctionWrapper< ret_value_type >::operator() ( ret_value_type(class_type::*)(type1, type2, type3)  CallingFunction,
class_type &  ob,
type1 &  Param1,
type2 &  Param2,
type3 &  Param3 
) [inline]

Wrapper calls function with 3 parameters.

Parameters:
CallingFunction - Calling function
ob - Object wich will call 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 748 of file testing_utilities.h.

                {
                        return( ( ( &ob )->*CallingFunction )( Param1 , Param2 , Param3 ) );
                }

template<class ret_value_type >
template<class class_type , class type1 , class type2 , class type3 >
ret_value_type nitro::MemberFunctionWrapper< ret_value_type >::operator() ( ret_value_type(class_type::*)(type1, type2, type3) const   CallingFunction,
class_type &  ob,
type1 &  Param1,
type2 &  Param2,
type3 &  Param3 
) [inline]

Wrapper calls function with 3 parameters.

Parameters:
CallingFunction - Calling function
ob - Object wich will call 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 708 of file testing_utilities.h.

                {
                        return( ( ( &ob )->*CallingFunction )( Param1 , Param2 , Param3 ) );
                }

template<class ret_value_type >
template<class class_type , class type1 , class type2 >
ret_value_type nitro::MemberFunctionWrapper< ret_value_type >::operator() ( ret_value_type(class_type::*)(type1, type2)  CallingFunction,
class_type &  ob,
type1 &  Param1,
type2 &  Param2 
) [inline]

Wrapper calls function with 2 parameters.

Parameters:
CallingFunction - Calling function
ob - Object wich will call 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 668 of file testing_utilities.h.

                {
                        return( ( ( &ob )->*CallingFunction )( Param1 , Param2 ) );
                }

template<class ret_value_type >
template<class class_type , class type1 , class type2 >
ret_value_type nitro::MemberFunctionWrapper< ret_value_type >::operator() ( ret_value_type(class_type::*)(type1, type2) const   CallingFunction,
class_type &  ob,
type1 &  Param1,
type2 &  Param2 
) [inline]

Wrapper calls function with 2 parameters.

Parameters:
CallingFunction - Calling function
ob - Object wich will call 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 632 of file testing_utilities.h.

                {
                        return( ( ( &ob )->*CallingFunction )( Param1 , Param2 ) );
                }

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

Wrapper calls function with 1 parameter.

Parameters:
CallingFunction - Calling function
ob - Object wich will call function.
Param1 - Parameter of the wrapped function.
Returns:
Result of the function CallingFunction.
Author:
Dododnov A.A.

Definition at line 596 of file testing_utilities.h.

                {
                        return( ( ( &ob )->*CallingFunction )( Param1 ) );
                }

template<class ret_value_type >
template<class class_type , class type1 >
ret_value_type nitro::MemberFunctionWrapper< ret_value_type >::operator() ( ret_value_type(class_type::*)(type1) const   CallingFunction,
class_type &  ob,
type1 &  Param1 
) [inline]

Wrapper calls function with 1 parameter.

Parameters:
CallingFunction - Calling function
ob - Object wich will call function.
Param1 - Parameter of the wrapped function.
Returns:
Result of the function CallingFunction.
Author:
Dododnov A.A.

Definition at line 564 of file testing_utilities.h.

                {
                        return( ( ( &ob )->*CallingFunction )( Param1 ) );
                }

template<class ret_value_type >
template<class class_type >
ret_value_type nitro::MemberFunctionWrapper< ret_value_type >::operator() ( ret_value_type(class_type::*)(void)  CallingFunction,
class_type &  ob 
) [inline]

Wrapper calls function without any parameter.

Parameters:
CallingFunction - Calling function
ob - Object wich will call function.
Returns:
Result of the function CallingFunction.
Author:
Dododnov A.A.

Definition at line 532 of file testing_utilities.h.

                {
                        return( ( ( &ob )->*CallingFunction )() );
                }


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

Generated by  doxygen 1.6.1