Main MRPT website > C++ reference for MRPT 1.9.9
List of all members | Public Types | Public Member Functions | Private Types | Private Attributes
mrpt::utils::metaprogramming::UnaryMemberFunctionWrapper< T, U, V > Class Template Reference

Detailed Description

template<typename T, typename U, typename V>
class mrpt::utils::metaprogramming::UnaryMemberFunctionWrapper< T, U, V >

This template encapsulates an unary member function and a single object into a function expecting the parameter of the member function.

Don't use directly. Use the wrapMember function instead.

Definition at line 308 of file metaprogramming.h.

#include <mrpt/utils/metaprogramming.h>

Public Types

typedef U argument_type
 
typedef T result_type
 

Public Member Functions

 UnaryMemberFunctionWrapper (V &o, MemberFunction f)
 
operator() (U p)
 

Private Types

typedef T(V::* MemberFunction) (U)
 

Private Attributes

V & obj
 
MemberFunction func
 

Member Typedef Documentation

◆ argument_type

template<typename T, typename U, typename V>
typedef U mrpt::utils::metaprogramming::UnaryMemberFunctionWrapper< T, U, V >::argument_type

Definition at line 316 of file metaprogramming.h.

◆ MemberFunction

template<typename T, typename U, typename V>
typedef T(V::* mrpt::utils::metaprogramming::UnaryMemberFunctionWrapper< T, U, V >::MemberFunction) (U)
private

Definition at line 311 of file metaprogramming.h.

◆ result_type

template<typename T, typename U, typename V>
typedef T mrpt::utils::metaprogramming::UnaryMemberFunctionWrapper< T, U, V >::result_type

Definition at line 317 of file metaprogramming.h.

Constructor & Destructor Documentation

◆ UnaryMemberFunctionWrapper()

template<typename T, typename U, typename V>
mrpt::utils::metaprogramming::UnaryMemberFunctionWrapper< T, U, V >::UnaryMemberFunctionWrapper ( V &  o,
MemberFunction  f 
)
inline

Definition at line 318 of file metaprogramming.h.

Member Function Documentation

◆ operator()()

template<typename T, typename U, typename V>
T mrpt::utils::metaprogramming::UnaryMemberFunctionWrapper< T, U, V >::operator() ( p)
inline

Member Data Documentation

◆ func

template<typename T, typename U, typename V>
MemberFunction mrpt::utils::metaprogramming::UnaryMemberFunctionWrapper< T, U, V >::func
private

◆ obj

template<typename T, typename U, typename V>
V& mrpt::utils::metaprogramming::UnaryMemberFunctionWrapper< T, U, V >::obj
private

Definition at line 312 of file metaprogramming.h.




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019