BDE 4.14.0 Production release
|
#include <bdlf_memfn.h>
Public Types | |
typedef Traits::ResultType | ResultType |
typedef Traits::ArgumentList | Args |
typedef Traits::ClassType | ObjectType |
typedef PROTOTYPE | Prototype |
typedef PROTOTYPE | ProtoType |
Public Member Functions | |
MemFn (PROTOTYPE func) | |
MemFn (const MemFn< PROTOTYPE > &original) | |
~MemFn ()=default | |
Destroy this object. | |
template<class INSTANCE > | |
ResultType | operator() (INSTANCE &object) const |
template<class INSTANCE > | |
ResultType | operator() (INSTANCE &object, ARG1 arg1) const |
template<class INSTANCE > | |
ResultType | operator() (INSTANCE &object, ARG1 arg1, ARG2 arg2) const |
template<class INSTANCE > | |
ResultType | operator() (INSTANCE &object, ARG1 arg1, ARG2 arg2, ARG3 arg3) const |
template<class INSTANCE > | |
ResultType | operator() (INSTANCE &object, ARG1 arg1, ARG2 arg2, ARG3 arg3, ARG4 arg4) const |
template<class INSTANCE > | |
ResultType | operator() (INSTANCE &object, ARG1 arg1, ARG2 arg2, ARG3 arg3, ARG4 arg4, ARG5 arg5) const |
template<class INSTANCE > | |
ResultType | operator() (INSTANCE &object, ARG1 arg1, ARG2 arg2, ARG3 arg3, ARG4 arg4, ARG5 arg5, ARG6 arg6) const |
template<class INSTANCE > | |
ResultType | operator() (INSTANCE &object, ARG1 arg1, ARG2 arg2, ARG3 arg3, ARG4 arg4, ARG5 arg5, ARG6 arg6, ARG7 arg7) const |
template<class INSTANCE > | |
ResultType | operator() (INSTANCE &object, ARG1 arg1, ARG2 arg2, ARG3 arg3, ARG4 arg4, ARG5 arg5, ARG6 arg6, ARG7 arg7, ARG8 arg8) const |
template<class INSTANCE > | |
ResultType | operator() (INSTANCE &object, ARG1 arg1, ARG2 arg2, ARG3 arg3, ARG4 arg4, ARG5 arg5, ARG6 arg6, ARG7 arg7, ARG8 arg8, ARG9 arg9) const |
template<class INSTANCE > | |
ResultType | operator() (INSTANCE &object, ARG1 arg1, ARG2 arg2, ARG3 arg3, ARG4 arg4, ARG5 arg5, ARG6 arg6, ARG7 arg7, ARG8 arg8, ARG9 arg9, ARG10 arg10) const |
template<class INSTANCE > | |
ResultType | operator() (INSTANCE &object, ARG1 arg1, ARG2 arg2, ARG3 arg3, ARG4 arg4, ARG5 arg5, ARG6 arg6, ARG7 arg7, ARG8 arg8, ARG9 arg9, ARG10 arg10, ARG11 arg11) const |
template<class INSTANCE > | |
ResultType | operator() (INSTANCE &object, ARG1 arg1, ARG2 arg2, ARG3 arg3, ARG4 arg4, ARG5 arg5, ARG6 arg6, ARG7 arg7, ARG8 arg8, ARG9 arg9, ARG10 arg10, ARG11 arg11, ARG12 arg12) const |
template<class INSTANCE > | |
ResultType | operator() (INSTANCE &object, ARG1 arg1, ARG2 arg2, ARG3 arg3, ARG4 arg4, ARG5 arg5, ARG6 arg6, ARG7 arg7, ARG8 arg8, ARG9 arg9, ARG10 arg10, ARG11 arg11, ARG12 arg12, ARG13 arg13) const |
template<class INSTANCE > | |
ResultType | operator() (INSTANCE &object, ARG1 arg1, ARG2 arg2, ARG3 arg3, ARG4 arg4, ARG5 arg5, ARG6 arg6, ARG7 arg7, ARG8 arg8, ARG9 arg9, ARG10 arg10, ARG11 arg11, ARG12 arg12, ARG13 arg13, ARG14 arg14) const |
template<class INSTANCE > | |
ResultType | operator() (const INSTANCE &object) const |
template<class INSTANCE > | |
ResultType | operator() (const INSTANCE &object, ARG1 arg1) const |
template<class INSTANCE > | |
ResultType | operator() (const INSTANCE &object, ARG1 arg1, ARG2 arg2) const |
template<class INSTANCE > | |
ResultType | operator() (const INSTANCE &object, ARG1 arg1, ARG2 arg2, ARG3 arg3) const |
template<class INSTANCE > | |
ResultType | operator() (const INSTANCE &object, ARG1 arg1, ARG2 arg2, ARG3 arg3, ARG4 arg4) const |
template<class INSTANCE > | |
ResultType | operator() (const INSTANCE &object, ARG1 arg1, ARG2 arg2, ARG3 arg3, ARG4 arg4, ARG5 arg5) const |
template<class INSTANCE > | |
ResultType | operator() (const INSTANCE &object, ARG1 arg1, ARG2 arg2, ARG3 arg3, ARG4 arg4, ARG5 arg5, ARG6 arg6) const |
template<class INSTANCE > | |
ResultType | operator() (const INSTANCE &object, ARG1 arg1, ARG2 arg2, ARG3 arg3, ARG4 arg4, ARG5 arg5, ARG6 arg6, ARG7 arg7) const |
template<class INSTANCE > | |
ResultType | operator() (const INSTANCE &object, ARG1 arg1, ARG2 arg2, ARG3 arg3, ARG4 arg4, ARG5 arg5, ARG6 arg6, ARG7 arg7, ARG8 arg8) const |
template<class INSTANCE > | |
ResultType | operator() (const INSTANCE &object, ARG1 arg1, ARG2 arg2, ARG3 arg3, ARG4 arg4, ARG5 arg5, ARG6 arg6, ARG7 arg7, ARG8 arg8, ARG9 arg9) const |
template<class INSTANCE > | |
ResultType | operator() (const INSTANCE &object, ARG1 arg1, ARG2 arg2, ARG3 arg3, ARG4 arg4, ARG5 arg5, ARG6 arg6, ARG7 arg7, ARG8 arg8, ARG9 arg9, ARG10 arg10) const |
template<class INSTANCE > | |
ResultType | operator() (const INSTANCE &object, ARG1 arg1, ARG2 arg2, ARG3 arg3, ARG4 arg4, ARG5 arg5, ARG6 arg6, ARG7 arg7, ARG8 arg8, ARG9 arg9, ARG10 arg10, ARG11 arg11) const |
template<class INSTANCE > | |
ResultType | operator() (const INSTANCE &object, ARG1 arg1, ARG2 arg2, ARG3 arg3, ARG4 arg4, ARG5 arg5, ARG6 arg6, ARG7 arg7, ARG8 arg8, ARG9 arg9, ARG10 arg10, ARG11 arg11, ARG12 arg12) const |
template<class INSTANCE > | |
ResultType | operator() (const INSTANCE &object, ARG1 arg1, ARG2 arg2, ARG3 arg3, ARG4 arg4, ARG5 arg5, ARG6 arg6, ARG7 arg7, ARG8 arg8, ARG9 arg9, ARG10 arg10, ARG11 arg11, ARG12 arg12, ARG13 arg13) const |
template<class INSTANCE > | |
ResultType | operator() (const INSTANCE &object, ARG1 arg1, ARG2 arg2, ARG3 arg3, ARG4 arg4, ARG5 arg5, ARG6 arg6, ARG7 arg7, ARG8 arg8, ARG9 arg9, ARG10 arg10, ARG11 arg11, ARG12 arg12, ARG13 arg13, ARG14 arg14) const |
This class encapsulates a member function pointer having the parameterized PROTOTYPE
, such that the member function pointer can be invoked in syntactically the same manner as a free function pointer. When invoking a member function through this wrapper, the first argument must be a pointer or reference to the instance on which to invoke the member function pointer. Zero to fourteen additional arguments may be specified depending on PROTOTYPE
.
See bdlf_memfn
typedef Traits::ArgumentList bdlf::MemFn< PROTOTYPE >::Args |
Args
is an alias for the list of arguments passed to an invocation of this member function wrapper, expressed as a bslmf_Typelist
.
typedef Traits::ClassType bdlf::MemFn< PROTOTYPE >::ObjectType |
ObjectType
is an alias for the class type to which the member function that is wrapped belongs.
typedef PROTOTYPE bdlf::MemFn< PROTOTYPE >::Prototype |
ProtoType
is an alias for the parameterized PROTOTYPE
passed as a template argument to this wrapper.
typedef PROTOTYPE bdlf::MemFn< PROTOTYPE >::ProtoType |
ProtoType
is an alias for the parameterized PROTOTYPE
passed as a template argument to this wrapper.
DEPRECATED: Use Prototype
instead.
typedef Traits::ResultType bdlf::MemFn< PROTOTYPE >::ResultType |
ResultType
is an alias for the type of the object returned by an invocation of this member function wrapper.
|
inlineexplicit |
Create a member function pointer wrapper holding the address of the specified func
member function having the parameterized PROTOTYPE
.
|
inline |
Create a member function pointer wrapper holding the address of the same member function as the specified original
object.
|
default |
|
inline |
Invoke the member function pointer held by this wrapper on the specified object
reference to a non-modifiable instance of the parameterized INSTANCE
type, with no arguments, and return the result of this invocation, or void
if this member function pointer does not return a result.
|
inline |
Invoke the member function pointer held by this wrapper on the specified object
reference to a non-modifiable instance of the parameterized INSTANCE
type, with the specified argument arg1
, and return the result of this invocation, or void
if this member function pointer does not return a result.
|
inline |
Invoke the member function pointer held by this wrapper on the specified object
reference to a non-modifiable instance of the parameterized INSTANCE
type, with the specified arguments arg1
up to arg2
, and return the result of this invocation, or void
if this member function pointer does not return a result.
|
inline |
Invoke the member function pointer held by this wrapper on the specified object
reference to a non-modifiable instance of the parameterized INSTANCE
type, with the specified arguments arg1
up to arg3
, and return the result of this invocation, or void
if this member function pointer does not return a result.
|
inline |
Invoke the member function pointer held by this wrapper on the specified object
reference to a non-modifiable instance of the parameterized INSTANCE
type, with the specified arguments arg1
up to arg4
, and return the result of this invocation, or void
if this member function pointer does not return a result.
|
inline |
Invoke the member function pointer held by this wrapper on the specified object
reference to a non-modifiable instance of the parameterized INSTANCE
type, with the specified arguments arg1
up to arg5
, and return the result of this invocation, or void
if this member function pointer does not return a result.
|
inline |
Invoke the member function pointer held by this wrapper on the specified object
reference to a non-modifiable instance of the parameterized INSTANCE
type, with the specified arguments arg1
up to arg6
, and return the result of this invocation, or void
if this member function pointer does not return a result.
|
inline |
Invoke the member function pointer held by this wrapper on the specified object
reference to a non-modifiable instance of the parameterized INSTANCE
type, with the specified arguments arg1
up to arg7
, and return the result of this invocation, or void
if this member function pointer does not return a result.
|
inline |
Invoke the member function pointer held by this wrapper on the specified object
reference to a non-modifiable instance of the parameterized INSTANCE
type, with the specified arguments arg1
up to arg8
, and return the result of this invocation, or void
if this member function pointer does not return a result.
|
inline |
Invoke the member function pointer held by this wrapper on the specified object
reference to a non-modifiable instance of the parameterized INSTANCE
type, with the specified arguments arg1
up to arg9
, and return the result of this invocation, or void
if this member function pointer does not return a result.
|
inline |
Invoke the member function pointer held by this wrapper on the specified object
reference to a non-modifiable instance of the parameterized INSTANCE
type, with the specified arguments arg1
up to arg10
, and return the result of this invocation, or void
if this member function pointer does not return a result.
|
inline |
Invoke the member function pointer held by this wrapper on the specified object
reference to a non-modifiable instance of the parameterized INSTANCE
type, with the specified arguments arg1
up to arg11
, and return the result of this invocation, or void
if this member function pointer does not return a result.
|
inline |
Invoke the member function pointer held by this wrapper on the specified object
reference to a non-modifiable instance of the parameterized INSTANCE
type, with the specified arguments arg1
up to arg12
, and return the result of this invocation, or void
if this member function pointer does not return a result.
|
inline |
Invoke the member function pointer held by this wrapper on the specified object
reference to a non-modifiable instance of the parameterized INSTANCE
type, with the specified arguments arg1
up to arg13
, and return the result of this invocation, or void
if this member function pointer does not return a result.
|
inline |
Invoke the member function pointer held by this wrapper on the specified object
reference to a non-modifiable instance of the parameterized INSTANCE
type, with the specified arguments arg1
up to arg14
, and return the result of this invocation, or void
if this member function pointer does not return a result.
|
inline |
Invoke the member function pointer held by this wrapper on the specified object
reference to a modifiable instance of the parameterized INSTANCE
type, with no specified arguments, and return the result of this invocation, or void
if this member function pointer does not return a result.
|
inline |
Invoke the member function pointer held by this wrapper on the specified object
reference to a modifiable instance of the parameterized INSTANCE
type, with the specified argument arg1
, and return the result of this invocation, or void
if this member function pointer does not return a result.
|
inline |
Invoke the member function pointer held by this wrapper on the specified object
reference to a modifiable instance of the parameterized INSTANCE
type, with the specified argument arg1
up to arg2
, and return the result of this invocation, or void
if this member function pointer does not return a result.
|
inline |
Invoke the member function pointer held by this wrapper on the specified object
reference to a modifiable instance of the parameterized INSTANCE
type, with the specified argument arg1
up to arg3
, and return the result of this invocation, or void
if this member function pointer does not return a result.
|
inline |
Invoke the member function pointer held by this wrapper on the specified object
reference to a modifiable instance of the parameterized INSTANCE
type, with the specified argument arg1
up to arg4
, and return the result of this invocation, or void
if this member function pointer does not return a result.
|
inline |
Invoke the member function pointer held by this wrapper on the specified object
reference to a modifiable instance of the parameterized INSTANCE
type, with the specified argument arg1
up to arg5
, and return the result of this invocation, or void
if this member function pointer does not return a result.
|
inline |
Invoke the member function pointer held by this wrapper on the specified object
reference to a modifiable instance of the parameterized INSTANCE
type, with the specified argument arg1
up to arg6
, and return the result of this invocation, or void
if this member function pointer does not return a result.
|
inline |
Invoke the member function pointer held by this wrapper on the specified object
reference to a modifiable instance of the parameterized INSTANCE
type, with the specified argument arg1
up to arg7
, and return the result of this invocation, or void
if this member function pointer does not return a result.
|
inline |
Invoke the member function pointer held by this wrapper on the specified object
reference to a modifiable instance of the parameterized INSTANCE
type, with the specified argument arg1
up to arg8
, and return the result of this invocation, or void
if this member function pointer does not return a result.
|
inline |
Invoke the member function pointer held by this wrapper on the specified object
reference to a modifiable instance of the parameterized INSTANCE
type, with the specified argument arg1
up to arg9
, and return the result of this invocation, or void
if this member function pointer does not return a result.
|
inline |
Invoke the member function pointer held by this wrapper on the specified object
reference to a modifiable instance of the parameterized INSTANCE
type, with the specified argument arg1
up to arg10
, and return the result of this invocation, or void
if this member function pointer does not return a result.
|
inline |
Invoke the member function pointer held by this wrapper on the specified object
reference to a modifiable instance of the parameterized INSTANCE
type, with the specified argument arg1
up to arg11
, and return the result of this invocation, or void
if this member function pointer does not return a result.
|
inline |
Invoke the member function pointer held by this wrapper on the specified object
reference to a modifiable instance of the parameterized INSTANCE
type, with the specified argument arg1
up to arg12
, and return the result of this invocation, or void
if this member function pointer does not return a result.
|
inline |
Invoke the member function pointer held by this wrapper on the specified object
reference to a modifiable instance of the parameterized INSTANCE
type, with the specified argument arg1
up to arg13
, and return the result of this invocation, or void
if this member function pointer does not return a result.
|
inline |
Invoke the member function pointer held by this wrapper on the specified object
reference to a modifiable instance of the parameterized INSTANCE
type, with the specified argument arg1
up to arg14
, and return the result of this invocation, or void
if this member function pointer does not return a result.