BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdlf::Bind_MemFnObjectWrapper< TYPE > Class Template Reference

#include <bdlf_bind.h>

Public Member Functions

 BSLMF_NESTED_TRAIT_DECLARATION (Bind_MemFnObjectWrapper, bslmf::HasPointerSemantics)
 
 BSLMF_NESTED_TRAIT_DECLARATION (Bind_MemFnObjectWrapper, bslmf::IsBitwiseMoveable)
 
 Bind_MemFnObjectWrapper (TYPE *object)
 
 Bind_MemFnObjectWrapper (TYPE &object)
 
TYPE & operator* () const
 

Detailed Description

template<class TYPE>
class bdlf::Bind_MemFnObjectWrapper< TYPE >

This local class is used to wrap an object used to invoke a member functions bound to a Bind binder. In explicit binding, the argument types of operator() are determined during Bind instantiation. If a member function is bound to the binder, and the object to invoke the member function on is passed as an invocation argument (instead of a bound argument), the exact type of the object - whether it is a pointer or reference - cannot be determined based on the method signature. This wrapper serve as an intermediate type to wrap around the object pointer or reference. This class is declared to have pointer semantics, such that MemFn will properly dereference the object to invoke the member function.

See bdlf_bind

Constructor & Destructor Documentation

◆ Bind_MemFnObjectWrapper() [1/2]

template<class TYPE >
bdlf::Bind_MemFnObjectWrapper< TYPE >::Bind_MemFnObjectWrapper ( TYPE *  object)
inline

◆ Bind_MemFnObjectWrapper() [2/2]

template<class TYPE >
bdlf::Bind_MemFnObjectWrapper< TYPE >::Bind_MemFnObjectWrapper ( TYPE &  object)
inline

Member Function Documentation

◆ BSLMF_NESTED_TRAIT_DECLARATION() [1/2]

template<class TYPE >
bdlf::Bind_MemFnObjectWrapper< TYPE >::BSLMF_NESTED_TRAIT_DECLARATION ( Bind_MemFnObjectWrapper< TYPE >  ,
bslmf::HasPointerSemantics   
)

◆ BSLMF_NESTED_TRAIT_DECLARATION() [2/2]

template<class TYPE >
bdlf::Bind_MemFnObjectWrapper< TYPE >::BSLMF_NESTED_TRAIT_DECLARATION ( Bind_MemFnObjectWrapper< TYPE >  ,
bslmf::IsBitwiseMoveable   
)

◆ operator*()

template<class TYPE >
TYPE & bdlf::Bind_MemFnObjectWrapper< TYPE >::operator* ( ) const
inline

Returns a reference to the object (of parameterized TYPE) pointed to by this Bind_MemFnObjectWrapper.


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