|
BDE 4.39.x Production Release
|
#include <bdlf_bind.h>
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
Public Member Functions | |
| BSLMF_NESTED_TRAIT_DECLARATION (Bind_MemFnObjectWrapper, bslmf::HasPointerSemantics) | |
| BSLMF_NESTED_TRAIT_DECLARATION (Bind_MemFnObjectWrapper, bslmf::IsBitwiseMoveable) | |
| template<class t_ARG_TYPE > | |
| Bind_MemFnObjectWrapper (t_ARG_TYPE &object) | |
| template<class t_ARG_TYPE > | |
| Bind_MemFnObjectWrapper (BSLMF_MOVABLEREF_DEDUCE(t_ARG_TYPE) object) | |
| t_TYPE & | operator* () const |
|
inline |
If the c'tor argument has pointer sematics to 't_TYPE', perform '&*' on it to initialize 'd_object_p', otherwise take its address to initialize 'd_object_p'.
|
inline |
| bdlf::Bind_MemFnObjectWrapper< t_TYPE >::BSLMF_NESTED_TRAIT_DECLARATION | ( | Bind_MemFnObjectWrapper< t_TYPE > | , |
| bslmf::HasPointerSemantics | |||
| ) |
| bdlf::Bind_MemFnObjectWrapper< t_TYPE >::BSLMF_NESTED_TRAIT_DECLARATION | ( | Bind_MemFnObjectWrapper< t_TYPE > | , |
| bslmf::IsBitwiseMoveable | |||
| ) |
|
inline |
Returns a reference to the object (of parameterized TYPE) pointed to by this Bind_MemFnObjectWrapper.