ACE 8.0.1
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ACE_Service_Config_Guard Class Reference

A guard class, designed to be instantiated on the stack. More...

#include <Service_Config.h>

Collaboration diagram for ACE_Service_Config_Guard:
Collaboration graph
[legend]

Public Member Functions

 ACE_Service_Config_Guard (ACE_Service_Gestalt *psg)
 ctor
 
 ~ACE_Service_Config_Guard ()
 

Private Member Functions

 ACE_Service_Config_Guard (const ACE_Service_Config_Guard &)=delete
 
ACE_Service_Config_Guardoperator= (const ACE_Service_Config_Guard &)=delete
 

Private Attributes

ACE_Intrusive_Auto_Ptr< ACE_Service_Gestaltsaved_
 

Detailed Description

A guard class, designed to be instantiated on the stack.

Instantiating it with a specific configuration ensures any references to ACE_Service_Config::instance(), even when occurring in static constructors, will allways access the designated configuration instance. This comes very handy when a dynamic service also registers any static services of its own and their static factories.

Constructor & Destructor Documentation

◆ ACE_Service_Config_Guard() [1/2]

ACE_Service_Config_Guard::ACE_Service_Config_Guard ( ACE_Service_Gestalt * psg)

ctor

◆ ~ACE_Service_Config_Guard()

ACE_Service_Config_Guard::~ACE_Service_Config_Guard ( )

◆ ACE_Service_Config_Guard() [2/2]

ACE_Service_Config_Guard::ACE_Service_Config_Guard ( const ACE_Service_Config_Guard & )
privatedelete

Member Function Documentation

◆ operator=()

ACE_Service_Config_Guard & ACE_Service_Config_Guard::operator= ( const ACE_Service_Config_Guard & )
privatedelete

Member Data Documentation

◆ saved_

ACE_Intrusive_Auto_Ptr<ACE_Service_Gestalt> ACE_Service_Config_Guard::saved_
private

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