TAO_PortableGroup
2.1.8
|
Guard implementation used to make object group cleanup exception-safe. More...
#include <PG_Group_Guard.h>
Public Member Functions | |
TAO_PG_Group_Guard (TAO_PG_GenericFactory &generic_factory, TAO_PG_Factory_Set &factory_set, TAO_PG_ObjectGroupManager &group_manager, const PortableServer::ObjectId &oid) | |
Constructor. More... | |
~TAO_PG_Group_Guard (void) | |
Destructor. More... | |
void | release (void) |
Relinquish cleanup responsibility. More... | |
Private Attributes | |
TAO_PG_GenericFactory & | generic_factory_ |
TAO_PG_Factory_Set & | factory_set_ |
TAO_PG_ObjectGroupManager & | group_manager_ |
const PortableServer::ObjectId & | oid_ |
bool | released_ |
Guard implementation used to make object group cleanup exception-safe.
This guard's destructor performs cleanup of object group resources. Thus, cleanup is performed when this guard goes out of scope unless explicitly released from that responsibility.
This guard is meant to be used internally by the TAO_PG_GenericFactory class.
TAO_PG_Group_Guard::TAO_PG_Group_Guard | ( | TAO_PG_GenericFactory & | generic_factory, |
TAO_PG_Factory_Set & | factory_set, | ||
TAO_PG_ObjectGroupManager & | group_manager, | ||
const PortableServer::ObjectId & | oid | ||
) |
Constructor.
TAO_PG_Group_Guard::~TAO_PG_Group_Guard | ( | void | ) |
Destructor.
void TAO_PG_Group_Guard::release | ( | void | ) |
Relinquish cleanup responsibility.
|
private |
Reference to the TAO_PG_Factory_Set that contains all application-specific GenericFactory object references.
|
private |
Reference to the infrastructure TAO_PG_GenericFactory that created the below TAO_PG_Factory_Set.
|
private |
Reference to the TAO_PG_ObjectGroupManager that maintains the object group map.
|
private |
Reference to the ObjectId that is the map key necessary to unbind the corresponding object group map entry from the map upon destruction.
|
private |
Flag that dictates whether or not the destructor will perform cleanup.