#include <Monitor_Point_Registry.h>
Public Member Functions | |
bool | add (Monitor_Base *type) |
Adds a monitor to the registry. | |
bool | remove (const char *name) |
Remove a monitor from the registry. | |
Monitor_Control_Types::NameList | names (void) |
Returns a list of names stored in the registry. | |
Monitor_Base * | get (const ACE_CString &name) const |
long | constraint_id (void) |
Returns a unique id for a constraint when it is created. | |
void | cleanup (void) |
Static Public Member Functions | |
static Monitor_Point_Registry * | instance (void) |
Private Types | |
typedef ACE_Hash_Map_Manager < ACE_CString, Monitor_Base *, ACE_SYNCH_NULL_MUTEX > | Map |
Underlying container for the registry. | |
Private Member Functions | |
Monitor_Point_Registry (void) | |
Prevent that users can make an instance. | |
Private Attributes | |
ACE_SYNCH_MUTEX | mutex_ |
Map | map_ |
long | constraint_id_ |
Friends | |
class | ACE_Singleton< Monitor_Point_Registry, ACE_SYNCH_MUTEX > |
typedef ACE_Hash_Map_Manager<ACE_CString, Monitor_Base*, ACE_SYNCH_NULL_MUTEX> ACE::Monitor_Control::Monitor_Point_Registry::Map [private] |
Underlying container for the registry.
ACE::Monitor_Control::Monitor_Point_Registry::Monitor_Point_Registry | ( | void | ) | [private] |
Prevent that users can make an instance.
bool ACE::Monitor_Control::Monitor_Point_Registry::add | ( | Monitor_Base * | type | ) |
Adds a monitor to the registry.
Temporary debugging code.
void ACE::Monitor_Control::Monitor_Point_Registry::cleanup | ( | void | ) |
Decrements the reference count on all remaining entries, called right before we go out of scope (i.e., process exits).
long ACE::Monitor_Control::Monitor_Point_Registry::constraint_id | ( | void | ) |
Returns a unique id for a constraint when it is created.
Monitor_Base * ACE::Monitor_Control::Monitor_Point_Registry::get | ( | const ACE_CString & | name | ) | const |
Increments the refcount, so the caller is responsible for decrementing it when finished.
Monitor_Point_Registry * ACE::Monitor_Control::Monitor_Point_Registry::instance | ( | void | ) | [static] |
Used to help ensure that there is only a single instance per process of Monitor_Point_Registry.
Monitor_Control_Types::NameList ACE::Monitor_Control::Monitor_Point_Registry::names | ( | void | ) |
Returns a list of names stored in the registry.
bool ACE::Monitor_Control::Monitor_Point_Registry::remove | ( | const char * | name | ) |
Remove a monitor from the registry.
Temporary debugging code.
friend class ACE_Singleton< Monitor_Point_Registry, ACE_SYNCH_MUTEX > [friend] |
long ACE::Monitor_Control::Monitor_Point_Registry::constraint_id_ [private] |
Since we're accessed as a singleton, we can keep track of dispensing unique ids for constraints.
ACE_SYNCH_MUTEX ACE::Monitor_Control::Monitor_Point_Registry::mutex_ [mutable, private] |