![]() |
Leviathan
0.8.0.0
Leviathan game engine
|
An object which can accept BaseDelegateSlot derived callbacks that can be called when the event represented by this delegate is called. More...
#include <DelegateSlot.h>
Public Member Functions | |
DLLEXPORT | Delegate () |
DLLEXPORT | ~Delegate () |
DLLEXPORT void | Call (const NamedVars::pointer &values) const |
Calls all the attached delegates. More... | |
DLLEXPORT void | Register (const BaseDelegateSlot::pointer &callback) |
Registers a new callback. More... | |
DLLEXPORT void | Call (NamedVars *variables) const |
AngelScript wrapper for Call. More... | |
REFERENCE_COUNTED_PTR_TYPE (Delegate) | |
![]() | |
DLLEXPORT | ThreadSafeGeneric () |
DLLEXPORT | ~ThreadSafeGeneric () |
FORCE_INLINE void | VerifyLock (RecursiveLock &guard) const |
FORCE_INLINE void | VerifyLock (Lock &lockit) const |
![]() | |
ReferenceCounted (const ReferenceCounted &other)=delete | |
ReferenceCounted & | operator= (const ReferenceCounted &other)=delete |
FORCE_INLINE void | AddRef () |
FORCE_INLINE void | Release () |
removes a reference and deletes the object if reference count reaches zero More... | |
int32_t | GetRefCount () const |
Returns the reference count. More... | |
Additional Inherited Members | |
![]() | |
using | basepointer = boost::intrusive_ptr< ReferenceCounted > |
using | refcountedpointer = boost::intrusive_ptr< ReferenceCounted > |
![]() | |
template<class ActualType > | |
static boost::intrusive_ptr< ActualType > | WrapPtr (ActualType *ptr) |
Creates an intrusive_ptr from raw pointer. More... | |
template<class ActualType , class... Args> | |
static boost::intrusive_ptr< ActualType > | MakeShared (Args &&... args) |
Constructs a new instance and wraps it. More... | |
![]() | |
DLLEXPORT | ReferenceCounted () |
virtual DLLEXPORT | ~ReferenceCounted () |
![]() | |
MutexType | ObjectsLock |
An object which can accept BaseDelegateSlot derived callbacks that can be called when the event represented by this delegate is called.
Definition at line 52 of file DelegateSlot.h.
DLLEXPORT Delegate::Delegate | ( | ) |
Definition at line 9 of file DelegateSlot.cpp.
DLLEXPORT Delegate::~Delegate | ( | ) |
Definition at line 11 of file DelegateSlot.cpp.
DLLEXPORT void Delegate::Call | ( | const NamedVars::pointer & | values | ) | const |
Calls all the attached delegates.
values | The data for the callbacks to receive. |
Definition at line 21 of file DelegateSlot.cpp.
AngelScript wrapper for Call.
Definition at line 30 of file DelegateSlot.cpp.
Leviathan::Delegate::REFERENCE_COUNTED_PTR_TYPE | ( | Delegate | ) |
DLLEXPORT void Delegate::Register | ( | const BaseDelegateSlot::pointer & | callback | ) |