SCL
1.0
Standard Control Library : Control, dynamics, physics, and simulation
|
#include <CRegisteredCallbacks.hpp>
Static Public Member Functions | |
static bool | callbackRegistered (const Idx &arg_callback_name) |
static bool | resetCallbacks () |
static CMappedPointerList< Idx, CCallbackSuperBase< Idx > , true > * | getCallbacks () |
Private Types | |
typedef CSingleton < CMappedPointerList< Idx, CCallbackSuperBase< Idx > , true > > | singleton |
Private Member Functions | |
CRegisteredCallbacks () | |
CRegisteredCallbacks (const CRegisteredCallbacks &) | |
CRegisteredCallbacks & | operator= (const CRegisteredCallbacks &) |
Static Private Member Functions | |
static bool | registerCallback (const Idx &arg_callback_name, CCallbackSuperBase< Idx > *arg_callback_object) |
static CMappedPointerList< Idx, CCallbackSuperBase< Idx > , true > * | getData () |
static bool | resetData () |
Private Attributes | |
CMappedPointerList< Idx, CCallbackSuperBase< Idx > , true > | data_ |
Static Private Attributes | |
static CSingleton * | singleton_ |
Friends | |
class | CCallbackSuperBase< Idx > |
This class implements a callback factory singleton. In plain English, it is a one-of-a-kind class that can give you an function based on its name.
NOTE: The singleton manages its memory and deletes all the pointers.
|
private |
Private for the singleton
|
private |
Private for the singleton
|
inlinestatic |
Checks whether this callback has been registered with the factory
|
inlinestatic |
Used to access the callback list
|
staticinherited |
Creates a singleton if necessary and returns it.
Returns a pointer instead of a reference to support a 0 return when there is an error
|
private |
Private for the singleton
|
inlinestaticprivate |
This function registers new dynamic callbacks with the factory. You can get objects of this callback by calling the createObjectForCallback function
|
inlinestatic |
Deletes the singleton object and creates a new one in its stead
|
staticinherited |
Deletes the singleton instance and creates a new one.
|
protectedinherited |
Shared Memory: The publicly available data that will be shared across the different subsystems
|
staticprotectedinherited |
The singleton instance
This initializes the pointer to null