diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-09-22 18:04:14 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-09-22 18:04:14 +0000 |
commit | bc50b1884ac9c4b323c3e67512ec39ff30d16d64 (patch) | |
tree | 4e99f6f9a60789d19cbdcc3e2eb8f31876e14f16 /ace/Managed_Object.h | |
parent | 6a3c6f1d18b2217313ddc7587e1d39332dd7d03d (diff) | |
download | ATCD-bc50b1884ac9c4b323c3e67512ec39ff30d16d64.tar.gz |
renamed ACE_Managed_Cleanup to ACE_Cleanup_Adapter because it doesn't implicitly register itself with the ACE_Object_Manager
Diffstat (limited to 'ace/Managed_Object.h')
-rw-r--r-- | ace/Managed_Object.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/ace/Managed_Object.h b/ace/Managed_Object.h index 449da574bd7..56b34c838f7 100644 --- a/ace/Managed_Object.h +++ b/ace/Managed_Object.h @@ -20,21 +20,25 @@ #include "ace/OS.h" template <class TYPE> -class ACE_Managed_Cleanup : public ACE_Cleanup +class ACE_Cleanup_Adapter : public ACE_Cleanup // = TITLE // Adapter for ACE_Cleanup objects that allows them to be readily // managed by the ACE_Object_Manager. // // = DESCRIPTION // This template class wraps adapts an object of any type to be - // an ACE_Cleanup object. It can then be destroyed type-safely - // by the ACE_Object_Manager. + // an ACE_Cleanup object. The object can then be destroyed + // type-safely by the ACE_Object_Manager. { public: - ACE_Managed_Cleanup (void); + ACE_Cleanup_Adapter (void); + // Default constructor. + TYPE &object (void); + // Accessor for contained object. private: TYPE object_; + // Contained object. }; template <class TYPE> |