ACE 8.0.1
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
ACE::Monitor_Control::Monitor_Point_Registry Class Reference

Storage for instantiated monitor points. More...

#include <Monitor_Point_Registry.h>

Collaboration diagram for ACE::Monitor_Control::Monitor_Point_Registry:
Collaboration graph
[legend]

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 ()
 Returns a list of names stored in the registry.
 
Monitor_Baseget (const ACE_CString &name) const
 
long constraint_id ()
 Returns a unique id for a constraint when it is created.
 
void cleanup ()
 

Static Public Member Functions

static Monitor_Point_Registryinstance ()
 

Private Types

typedef ACE_Hash_Map_Manager< ACE_CString, Monitor_Base *, ACE_SYNCH_NULL_MUTEXMap
 Underlying container for the registry.
 

Private Member Functions

 Monitor_Point_Registry ()=default
 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 >
 

Detailed Description

Storage for instantiated monitor points.

Member Typedef Documentation

◆ Map

Underlying container for the registry.

Constructor & Destructor Documentation

◆ Monitor_Point_Registry()

ACE::Monitor_Control::Monitor_Point_Registry::Monitor_Point_Registry ( )
privatedefault

Prevent that users can make an instance.

Member Function Documentation

◆ add()

bool ACE::Monitor_Control::Monitor_Point_Registry::add ( Monitor_Base * type)

Adds a monitor to the registry.

◆ cleanup()

void ACE::Monitor_Control::Monitor_Point_Registry::cleanup ( )

Decrements the reference count on all remaining entries, called right before we go out of scope (i.e., process exits).

◆ constraint_id()

long ACE::Monitor_Control::Monitor_Point_Registry::constraint_id ( )

Returns a unique id for a constraint when it is created.

◆ get()

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.

◆ instance()

Monitor_Point_Registry * ACE::Monitor_Control::Monitor_Point_Registry::instance ( )
static

Used to help ensure that there is only a single instance per process of Monitor_Point_Registry.

◆ names()

Monitor_Control_Types::NameList ACE::Monitor_Control::Monitor_Point_Registry::names ( )

Returns a list of names stored in the registry.

◆ remove()

bool ACE::Monitor_Control::Monitor_Point_Registry::remove ( const char * name)

Remove a monitor from the registry.

Friends And Related Symbol Documentation

◆ ACE_Singleton< Monitor_Point_Registry, ACE_SYNCH_MUTEX >

Member Data Documentation

◆ constraint_id_

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.

◆ map_

Map ACE::Monitor_Control::Monitor_Point_Registry::map_
private

◆ mutex_

ACE_SYNCH_MUTEX ACE::Monitor_Control::Monitor_Point_Registry::mutex_
mutableprivate

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