Leviathan  0.8.0.0
Leviathan game engine
Leviathan::BaseNotifiableAll Class Reference

Specialized class for accepting all parent/child objects. More...

#include <BaseNotifiable.h>

+ Inheritance diagram for Leviathan::BaseNotifiableAll:

Public Member Functions

 BaseNotifiableAll ()
 
 ~BaseNotifiableAll ()
 
- Public Member Functions inherited from Leviathan::BaseNotifiable< BaseNotifierAll, BaseNotifiableAll >
 BaseNotifiable (BaseNotifiableAll *ourptr)
 
virtual ~BaseNotifiable ()
 
void ReleaseParentHooks (Lock &guard)
 Release function which releases all hooks. More...
 
bool UnConnectFromNotifier (Lock &guard, BaseNotifier< BaseNotifierAll, BaseNotifiableAll > *specificnotifier, Lock &notifierlock)
 The actual implementation of UnConnectFromNotifier. More...
 
bool UnConnectFromNotifier (Lock &guard, BaseNotifier< BaseNotifierAll, BaseNotifiableAll > *specificnotifier)
 
FORCE_INLINE bool UnConnectFromNotifier (BaseNotifier< BaseNotifierAll, BaseNotifiableAll > *specificnotifier)
 Disconnects this from a previously connected notifier. More...
 
bool UnConnectFromNotifier (int id)
 This searches the connected notifiers and calls the above function with it's pointer. More...
 
virtual void NotifyAll (Lock &guard)
 Notifies all the parents of this object about something. More...
 
bool IsConnectedTo (BaseNotifier< BaseNotifierAll, BaseNotifiableAll > *check, Lock &guard)
 Actual implementation of this method. More...
 
FORCE_INLINE bool IsConnectedTo (BaseNotifier< BaseNotifierAll, BaseNotifiableAll > *check)
 Returns true when the specified object is already connected. More...
 
bool ConnectToNotifier (BaseNotifier< BaseNotifierAll, BaseNotifiableAll > *owner)
 Connects this to a notifier object calling all the needed functions. More...
 
bool ConnectToNotifier (Lock &unlockable, BaseNotifier< BaseNotifierAll, BaseNotifiableAll > *owner)
 Variant for already locked objects. More...
 
void _OnUnhookNotifier (Lock &locked, BaseNotifier< BaseNotifierAll, BaseNotifiableAll > *parent, Lock &parentlock)
 Callback called by the parent, used to not to call the unhook again on the parent. More...
 
void _OnHookNotifier (Lock &locked, BaseNotifier< BaseNotifierAll, BaseNotifiableAll > *parent, Lock &parentlock)
 Called by parent to hook, and doesn't call the parent's functions. More...
 
BaseNotifiableAllGetActualPointerToNotifiableObject ()
 Gets the internal pointer to the actual object. More...
 
virtual void OnNotified (Lock &ownlock, BaseNotifierAll *parent, Lock &parentlock)
 Called when our parent notifies us about something. More...
 
- Public Member Functions inherited from Leviathan::ThreadSafeGeneric< MutexType >
DLLEXPORT ThreadSafeGeneric ()
 
DLLEXPORT ~ThreadSafeGeneric ()
 
FORCE_INLINE void VerifyLock (RecursiveLock &guard) const
 
FORCE_INLINE void VerifyLock (Lock &lockit) const
 

Additional Inherited Members

- Protected Member Functions inherited from Leviathan::BaseNotifiable< BaseNotifierAll, BaseNotifiableAll >
virtual void _OnNotifierConnected (Lock &guard, BaseNotifierAll *parentadded, Lock &parentlock)
 
virtual void _OnNotifierDisconnected (Lock &guard, BaseNotifierAll *parentremoved, Lock &parentlock)
 
- Protected Attributes inherited from Leviathan::BaseNotifiable< BaseNotifierAll, BaseNotifiableAll >
BaseNotifiableAllPointerToOurNotifiable
 Stores a pointer to the object that is inherited from this. More...
 
std::vector< BaseNotifier< BaseNotifierAll, BaseNotifiableAll > *> ConnectedToParents
 Vector of other objects that this is connected to. More...
 
- Protected Attributes inherited from Leviathan::ThreadSafeGeneric< MutexType >
MutexType ObjectsLock
 

Detailed Description

Specialized class for accepting all parent/child objects.

Definition at line 109 of file BaseNotifiable.h.

Constructor & Destructor Documentation

◆ BaseNotifiableAll()

Leviathan::BaseNotifiableAll::BaseNotifiableAll ( )
inline

Definition at line 111 of file BaseNotifiable.h.

111  : BaseNotifiable(this){
112  }

◆ ~BaseNotifiableAll()

Leviathan::BaseNotifiableAll::~BaseNotifiableAll ( )
inline

Definition at line 113 of file BaseNotifiable.h.

113  {
114  }

The documentation for this class was generated from the following file: