Main MRPT website > C++ reference
MRPT logo

mrpt::utils::metaprogramming::BinaryMemberFunctionWrapper< T, U1, U2, V > Class Template Reference

This template encapsulates a binary member function and a single object into a function expecting the two parameters of the member function. More...

#include <mrpt/utils/metaprogramming.h>

List of all members.

Public Types

typedef U1 first_argument_type
typedef U2 second_argument_type
typedef T result_type

Public Member Functions

 BinaryMemberFunctionWrapper (V &o, MemberFunction f)
operator() (U1 p1, U2 p2)

Private Types

typedef T(V::* MemberFunction )(U1, U2)

Private Attributes

V & obj
MemberFunction func

Detailed Description

template<typename T, typename U1, typename U2, typename V>
class mrpt::utils::metaprogramming::BinaryMemberFunctionWrapper< T, U1, U2, V >

This template encapsulates a binary member function and a single object into a function expecting the two parameters of the member function.

Don't use directly. Use the wrapMember function instead to avoid explicit template instantiation.

Definition at line 273 of file metaprogramming.h.


Member Typedef Documentation

template<typename T, typename U1, typename U2, typename V>
typedef U1 mrpt::utils::metaprogramming::BinaryMemberFunctionWrapper< T, U1, U2, V >::first_argument_type

Definition at line 279 of file metaprogramming.h.

template<typename T, typename U1, typename U2, typename V>
typedef T(V::* mrpt::utils::metaprogramming::BinaryMemberFunctionWrapper< T, U1, U2, V >::MemberFunction)(U1, U2) [private]

Definition at line 275 of file metaprogramming.h.

template<typename T, typename U1, typename U2, typename V>
typedef T mrpt::utils::metaprogramming::BinaryMemberFunctionWrapper< T, U1, U2, V >::result_type

Definition at line 281 of file metaprogramming.h.

template<typename T, typename U1, typename U2, typename V>
typedef U2 mrpt::utils::metaprogramming::BinaryMemberFunctionWrapper< T, U1, U2, V >::second_argument_type

Definition at line 280 of file metaprogramming.h.


Constructor & Destructor Documentation

template<typename T, typename U1, typename U2, typename V>
mrpt::utils::metaprogramming::BinaryMemberFunctionWrapper< T, U1, U2, V >::BinaryMemberFunctionWrapper ( V &  o,
MemberFunction  f 
) [inline]

Definition at line 282 of file metaprogramming.h.


Member Function Documentation

template<typename T, typename U1, typename U2, typename V>
T mrpt::utils::metaprogramming::BinaryMemberFunctionWrapper< T, U1, U2, V >::operator() ( U1  p1,
U2  p2 
) [inline]

Member Data Documentation

template<typename T, typename U1, typename U2, typename V>
MemberFunction mrpt::utils::metaprogramming::BinaryMemberFunctionWrapper< T, U1, U2, V >::func [private]
template<typename T, typename U1, typename U2, typename V>
V& mrpt::utils::metaprogramming::BinaryMemberFunctionWrapper< T, U1, U2, V >::obj [private]
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines



Page generated by Doxygen 1.6.1 for MRPT 0.9.0 SVN: at Mon Jun 7 06:47:58 UTC 2010