Main MRPT website > C++ reference for MRPT 1.5.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 252 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 258 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 254 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 259 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 260 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 255 of file metaprogramming.h.




Page generated by Doxygen 1.8.14 for MRPT 1.5.9 Git: 690a4699f Wed Apr 15 19:29:53 2020 +0200 at miƩ abr 15 19:30:12 CEST 2020