Quick Links:

bal | bbl | bdl | bsl

Public Member Functions

bdlf::Bind_MemFnObjectWrapper< TYPE > Class Template Reference

#include <bdlf_bind.h>

List of all members.

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 Component bdlf_bind


Constructor & Destructor Documentation

template<class TYPE >
bdlf::Bind_MemFnObjectWrapper< TYPE >::Bind_MemFnObjectWrapper ( TYPE *  object  )  [inline]
Parameters:
object IMPLICIT:
template<class TYPE >
bdlf::Bind_MemFnObjectWrapper< TYPE >::Bind_MemFnObjectWrapper ( TYPE &  object  )  [inline]

Implicitly converts the specified object (of parameterized TYPE) to a Bind_MemFnObjectWrapper.

Parameters:
object IMPLICIT:

Member Function Documentation

template<class TYPE >
bdlf::Bind_MemFnObjectWrapper< TYPE >::BSLMF_NESTED_TRAIT_DECLARATION ( Bind_MemFnObjectWrapper< TYPE >  ,
bslmf::HasPointerSemantics   
)
template<class TYPE >
bdlf::Bind_MemFnObjectWrapper< TYPE >::BSLMF_NESTED_TRAIT_DECLARATION ( Bind_MemFnObjectWrapper< TYPE >  ,
bslmf::IsBitwiseMoveable   
)
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: