diff options
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/Notify/Refcountable_Guard_T.h')
-rw-r--r-- | TAO/orbsvcs/orbsvcs/Notify/Refcountable_Guard_T.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Refcountable_Guard_T.h b/TAO/orbsvcs/orbsvcs/Notify/Refcountable_Guard_T.h index 1354378dc62..77d1e2a5db1 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Refcountable_Guard_T.h +++ b/TAO/orbsvcs/orbsvcs/Notify/Refcountable_Guard_T.h @@ -33,6 +33,9 @@ public: /// Constuctor TAO_Notify_Refcountable_Guard_T (T* t = 0); + /// Copy constructor + TAO_Notify_Refcountable_Guard_T (const TAO_Notify_Refcountable_Guard_T<T> & rhs); + /// Destructor ~TAO_Notify_Refcountable_Guard_T (); @@ -44,6 +47,13 @@ public: T &operator *() const; + TAO_Notify_Refcountable_Guard_T<T> & operator = ( + const TAO_Notify_Refcountable_Guard_T<T> & rhs); + +private: + /// helper for exception safeness + /// @throws nothing + void swap (TAO_Notify_Refcountable_Guard_T & rhs); private: T* t_; }; |