library of assembled shared sources |
http://lass.cocamware.com |
#include <callback_r_0.h>
Public Types | |
typedef CallbackR0< R > | TSelf |
typedef SharedPtr < impl::DispatcherR0< R > > | TDispatcherPtr |
Public Member Functions | |
CallbackR0 () | |
Default constructor, construct empty callback. | |
template<typename Function > | |
CallbackR0 (Function iFunction) | |
Construct function callback. | |
template<typename ObjectPtr , typename Method > | |
CallbackR0 (ObjectPtr iObject, Method iMethod) | |
Construct object/method callback. | |
CallbackR0 (const TSelf &iOther) | |
copy constructor | |
template<typename Other > | |
TSelf & | operator= (const Other &iOther) |
assignment operator | |
R | operator() () const |
THE operator. | |
void | reset () |
Reset to empty callback. | |
bool | isEmpty () const |
Returns true if no callback dispatcher is assigned to this object. | |
bool | operator! () const |
return this->isEmpty() | |
operator num::SafeBool () const | |
return !this->isEmpty()) | |
void | swap (TSelf &iOther) |
Swaps the dispatcher of this callback with the dispatcher of another. | |
Static Private Member Functions | |
template<typename Function > | |
static TDispatcherPtr | make (Function iFunction, meta::Wrap< meta::False >) |
template<typename Dispatcher > | |
static TDispatcherPtr | make (Dispatcher iDispatcher, meta::Wrap< meta::True >) |
Private Attributes | |
TDispatcherPtr | dispatcher_ |
Related Functions | |
(Note that these are not member functions.) | |
template<typename R > | |
bool | operator!= (const CallbackR0< R > &iA, const CallbackR0< R > &iB) |
return true if two callbacks are different | |
template<typename R > | |
CallbackR0< R > | makeCallback (R(*iFunction)()) |
make a CallbackR0 from a function | |
template<typename R > | |
const CallbackR0< R > & | makeCallback (const CallbackR0< R > &iCallback) |
make a CallbackR0 from a callback | |
template<typename ObjectPtr , typename Object , typename R > | |
CallbackR0< R > | makeCallback (ObjectPtr iObject, R(Object::*iMethod)()) |
make a CallbackR0 from a object and method |
Definition at line 89 of file callback_r_0.h.
typedef CallbackR0<R> lass::util::CallbackR0< R >::TSelf |
Definition at line 93 of file callback_r_0.h.
typedef SharedPtr< impl::DispatcherR0<R> > lass::util::CallbackR0< R >::TDispatcherPtr |
Definition at line 94 of file callback_r_0.h.
lass::util::CallbackR0< R >::CallbackR0 | ( | ) | [inline] |
lass::util::CallbackR0< R >::CallbackR0 | ( | Function | iFunction | ) | [inline] |
lass::util::CallbackR0< R >::CallbackR0 | ( | ObjectPtr | iObject, | |
Method | iMethod | |||
) | [inline] |
lass::util::CallbackR0< R >::CallbackR0 | ( | const TSelf & | iOther | ) | [inline] |
TSelf& lass::util::CallbackR0< R >::operator= | ( | const Other & | iOther | ) | [inline] |
assignment operator
Definition at line 134 of file callback_r_0.h.
References lass::util::CallbackR0< R >::swap().
R lass::util::CallbackR0< R >::operator() | ( | ) | const [inline] |
THE operator.
Executes the callback.
Definition at line 143 of file callback_r_0.h.
References lass::util::CallbackR0< R >::dispatcher_, lass::util::CallbackR0< R >::isEmpty(), and LASS_THROW_EX.
void lass::util::CallbackR0< R >::reset | ( | ) | [inline] |
Reset to empty callback.
Definition at line 157 of file callback_r_0.h.
References lass::util::CallbackR0< R >::dispatcher_, and lass::util::SharedPtr< T, StoragePolicy, CounterPolicy >::reset().
bool lass::util::CallbackR0< R >::isEmpty | ( | ) | const [inline] |
Returns true if no callback dispatcher is assigned to this object.
Definition at line 164 of file callback_r_0.h.
References lass::util::CallbackR0< R >::dispatcher_, and lass::util::SharedPtr< T, StoragePolicy, CounterPolicy >::isEmpty().
Referenced by lass::util::CallbackR0< R >::operator()().
bool lass::util::CallbackR0< R >::operator! | ( | ) | const [inline] |
return this->isEmpty()
Definition at line 171 of file callback_r_0.h.
References lass::util::CallbackR0< R >::dispatcher_, and lass::util::SharedPtr< T, StoragePolicy, CounterPolicy >::isEmpty().
lass::util::CallbackR0< R >::operator num::SafeBool | ( | ) | const [inline] |
return !this->isEmpty())
Definition at line 178 of file callback_r_0.h.
References lass::util::CallbackR0< R >::dispatcher_, lass::util::SharedPtr< T, StoragePolicy, CounterPolicy >::isEmpty(), lass::num::safeFalse, and lass::num::safeTrue.
void lass::util::CallbackR0< R >::swap | ( | TSelf & | iOther | ) | [inline] |
Swaps the dispatcher of this callback with the dispatcher of another.
Definition at line 185 of file callback_r_0.h.
References lass::util::CallbackR0< R >::dispatcher_.
Referenced by lass::util::CallbackR0< R >::operator=().
static TDispatcherPtr lass::util::CallbackR0< R >::make | ( | Function | iFunction, | |
meta::Wrap< meta::False > | ||||
) | [inline, static, private] |
Definition at line 193 of file callback_r_0.h.
static TDispatcherPtr lass::util::CallbackR0< R >::make | ( | Dispatcher | iDispatcher, | |
meta::Wrap< meta::True > | ||||
) | [inline, static, private] |
Definition at line 199 of file callback_r_0.h.
bool operator!= | ( | const CallbackR0< R > & | iA, | |
const CallbackR0< R > & | iB | |||
) | [related] |
CallbackR0< R > makeCallback | ( | R(*)() | iFunction | ) | [related] |
const CallbackR0< R > & makeCallback | ( | const CallbackR0< R > & | iCallback | ) | [related] |
CallbackR0< R > makeCallback | ( | ObjectPtr | iObject, | |
R(Object::*)() | iMethod | |||
) | [related] |
make a CallbackR0 from a object and method
make a CallbackR0 from a object and const method
Definition at line 246 of file callback_r_0.h.
TDispatcherPtr lass::util::CallbackR0< R >::dispatcher_ [private] |
Definition at line 204 of file callback_r_0.h.
Referenced by lass::util::CallbackR0< R >::isEmpty(), lass::util::CallbackR0< R >::operator num::SafeBool(), lass::util::CallbackR0< R >::operator!(), lass::util::CallbackR0< R >::operator()(), lass::util::CallbackR0< R >::reset(), and lass::util::CallbackR0< R >::swap().
Generated on Mon Nov 10 14:22:16 2008 for Library of Assembled Shared Sources by 1.5.7.1 |