![]() |
Leviathan
0.8.0.0
Leviathan game engine
|
Specialized class for accepting all parent/child objects. More...
#include <BaseNotifier.h>
Public Member Functions | |
BaseNotifierAll () | |
~BaseNotifierAll () | |
![]() | |
BaseNotifier (BaseNotifierAll *ourptr) | |
virtual | ~BaseNotifier () |
void | ReleaseChildHooks () |
Release function that unhooks all child objects. More... | |
void | ReleaseChildHooks (Lock &guard) |
FORCE_INLINE bool | ConnectToNotifiable (BaseNotifiable< BaseNotifierAll, BaseNotifiableAll > *child) |
Connects this to a notifiable object for holding a reference to it. More... | |
bool | ConnectToNotifiable (Lock &guard, BaseNotifiable< BaseNotifierAll, BaseNotifiableAll > *child, Lock &childlock) |
The actual implementation of ConnecToNotifiable. More... | |
virtual void | NotifyAll (Lock &guard) |
Notifies the children about something. More... | |
bool | UnConnectFromNotifiable (Lock &guard, BaseNotifiable< BaseNotifierAll, BaseNotifiableAll > *unhookfrom) |
Disconnects from previously connected notifiable. More... | |
FORCE_INLINE bool | UnConnectFromNotifiable (BaseNotifiable< BaseNotifierAll, BaseNotifiableAll > *child) |
bool | UnConnectFromNotifiable (int id) |
Searches the connected notifiable objects and calls the above function with it's pointer. More... | |
bool | IsConnectedTo (BaseNotifiable< BaseNotifierAll, BaseNotifiableAll > *check, Lock &guard) |
Actual implementation of this method. More... | |
FORCE_INLINE bool | IsConnectedTo (BaseNotifiable< BaseNotifierAll, BaseNotifiableAll > *check) |
Returns true when the specified object is already connected. More... | |
void | _OnUnhookNotifiable (Lock &guard, BaseNotifiable< BaseNotifierAll, BaseNotifiableAll > *childtoremove, Lock &childlock) |
void | _OnHookNotifiable (Lock &guard, BaseNotifiable< BaseNotifierAll, BaseNotifiableAll > *child, Lock &childlock) |
BaseNotifierAll * | GetActualPointerToNotifierObject () |
Gets the internal pointer to the actual object. More... | |
virtual void | OnNotified (Lock &ownlock, BaseNotifiableAll *child, Lock &childlock) |
Called when one of our children notifies us about something. More... | |
![]() | |
DLLEXPORT | ThreadSafeGeneric () |
DLLEXPORT | ~ThreadSafeGeneric () |
FORCE_INLINE void | VerifyLock (RecursiveLock &guard) const |
FORCE_INLINE void | VerifyLock (Lock &lockit) const |
Additional Inherited Members | |
![]() | |
virtual void | _OnNotifiableConnected (Lock &guard, BaseNotifiableAll *childadded, Lock &childlock) |
virtual void | _OnNotifiableDisconnected (Lock &guard, BaseNotifiableAll *childtoremove, Lock &childlock) |
![]() | |
BaseNotifierAll * | PointerToOurNotifier |
Stores a pointer to the object that is inherited from this. More... | |
std::vector< BaseNotifiable< BaseNotifierAll, BaseNotifiableAll > *> | ConnectedChildren |
Vector of other objects that this is connected to. More... | |
![]() | |
MutexType | ObjectsLock |
Specialized class for accepting all parent/child objects.
Definition at line 103 of file BaseNotifier.h.
|
inline |
Definition at line 105 of file BaseNotifier.h.
|
inline |
Definition at line 107 of file BaseNotifier.h.