library of assembled shared sources |
http://lass.cocamware.com |
#include <callback_0.h>
Public Types | |
typedef Callback0 | TSelf |
typedef SharedPtr < impl::Dispatcher0 > | TDispatcherPtr |
Public Member Functions | |
Callback0 () | |
Default constructor, construct empty callback. | |
template<typename Function > | |
Callback0 (Function iFunction) | |
callback to function or other callable entity. | |
template<typename ObjectPtr , typename Method > | |
Callback0 (ObjectPtr iObject, Method iMethod) | |
callback to method of object | |
Callback0 (const Callback0 &iOther) | |
copy constructor | |
template<typename Other > | |
TSelf & | operator= (const Other &iOther) |
assignment operator (also usable for conversion) | |
void | 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. | |
bool | operator== (const TSelf &iOther) const |
return true if two callbacks call the same function/method, NEEDS RTTI! | |
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.) | |
bool | operator!= (const Callback0 &iA, const Callback0 &iB) |
return true if two callbacks are different | |
Callback0 | makeCallback (void(*iFunction)()) |
make a Callback0 from a function | |
template<typename ObjectPtr , typename Object > | |
Callback0 | makeCallback (ObjectPtr iObject, void(Object::*iMethod)()) |
make a Callback0 from a object and method |
Definition at line 83 of file callback_0.h.
Definition at line 87 of file callback_0.h.
Definition at line 88 of file callback_0.h.
lass::util::Callback0::Callback0 | ( | ) | [inline] |
lass::util::Callback0::Callback0 | ( | Function | iFunction | ) | [inline] |
lass::util::Callback0::Callback0 | ( | ObjectPtr | iObject, | |
Method | iMethod | |||
) | [inline] |
lass::util::Callback0::Callback0 | ( | const Callback0 & | iOther | ) | [inline] |
TSelf& lass::util::Callback0::operator= | ( | const Other & | iOther | ) | [inline] |
assignment operator (also usable for conversion)
Definition at line 128 of file callback_0.h.
References swap().
void lass::util::Callback0::operator() | ( | ) | const [inline] |
THE operator.
Executes the callback.
Definition at line 139 of file callback_0.h.
References dispatcher_, and isEmpty().
void lass::util::Callback0::reset | ( | ) | [inline] |
Reset to empty callback.
Definition at line 152 of file callback_0.h.
References dispatcher_, and lass::util::SharedPtr< T, StoragePolicy, CounterPolicy >::reset().
bool lass::util::Callback0::isEmpty | ( | ) | const [inline] |
Returns true if no callback dispatcher is assigned to this object.
Definition at line 159 of file callback_0.h.
References dispatcher_, and lass::util::SharedPtr< T, StoragePolicy, CounterPolicy >::isEmpty().
Referenced by operator()().
bool lass::util::Callback0::operator! | ( | ) | const [inline] |
return this->isEmpty()
Definition at line 166 of file callback_0.h.
References dispatcher_, and lass::util::SharedPtr< T, StoragePolicy, CounterPolicy >::isEmpty().
lass::util::Callback0::operator num::SafeBool | ( | ) | const [inline] |
return !this->isEmpty())
Definition at line 173 of file callback_0.h.
References dispatcher_, lass::util::SharedPtr< T, StoragePolicy, CounterPolicy >::isEmpty(), lass::num::safeFalse, and lass::num::safeTrue.
void lass::util::Callback0::swap | ( | TSelf & | iOther | ) | [inline] |
Swaps the dispatcher of this callback with the dispatcher of another.
Definition at line 180 of file callback_0.h.
References dispatcher_.
Referenced by operator=().
bool lass::util::Callback0::operator== | ( | const TSelf & | iOther | ) | const [inline] |
return true if two callbacks call the same function/method, NEEDS RTTI!
Definition at line 188 of file callback_0.h.
References dispatcher_, and lass::util::SharedPtr< T, StoragePolicy, CounterPolicy >::get().
static TDispatcherPtr lass::util::Callback0::make | ( | Function | iFunction, | |
meta::Wrap< meta::False > | ||||
) | [inline, static, private] |
Definition at line 196 of file callback_0.h.
static TDispatcherPtr lass::util::Callback0::make | ( | Dispatcher | iDispatcher, | |
meta::Wrap< meta::True > | ||||
) | [inline, static, private] |
Definition at line 202 of file callback_0.h.
Callback0 makeCallback | ( | void(*)() | iFunction | ) | [related] |
Callback0 makeCallback | ( | ObjectPtr | iObject, | |
void(Object::*)() | iMethod | |||
) | [related] |
make a Callback0 from a object and method
make a Callback0 from a object and const method
Definition at line 244 of file callback_0.h.
Definition at line 207 of file callback_0.h.
Referenced by isEmpty(), operator num::SafeBool(), operator!(), operator()(), operator==(), reset(), and swap().
Generated on Mon Nov 10 14:22:16 2008 for Library of Assembled Shared Sources by 1.5.7.1 |