summaryrefslogtreecommitdiff
path: root/TAO/tao/Intrusive_Ref_Count_Base_T.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/Intrusive_Ref_Count_Base_T.h')
-rw-r--r--TAO/tao/Intrusive_Ref_Count_Base_T.h21
1 files changed, 13 insertions, 8 deletions
diff --git a/TAO/tao/Intrusive_Ref_Count_Base_T.h b/TAO/tao/Intrusive_Ref_Count_Base_T.h
index f37041bd02c..e0df6c0c5d2 100644
--- a/TAO/tao/Intrusive_Ref_Count_Base_T.h
+++ b/TAO/tao/Intrusive_Ref_Count_Base_T.h
@@ -1,4 +1,4 @@
-// This may look like C, but it's really -*- C++ -*-
+// -*- C++ -*-
//=============================================================================
/**
@@ -19,8 +19,11 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
+#include "tao/Versioned_Namespace.h"
+
#include "ace/Atomic_Op.h"
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class TAO_Intrusive_Ref_Count_Base<ACE_LOCK>
@@ -38,26 +41,28 @@ class TAO_Intrusive_Ref_Count_Base
{
public:
- virtual ~TAO_Intrusive_Ref_Count_Base();
+ virtual ~TAO_Intrusive_Ref_Count_Base (void);
- void _add_ref();
- void _remove_ref();
+ void _add_ref (void);
+ void _remove_ref (void);
protected:
- TAO_Intrusive_Ref_Count_Base();
+ TAO_Intrusive_Ref_Count_Base (void);
private:
ACE_Atomic_Op<ACE_LOCK, long> ref_count_;
- // Not implemented.
- TAO_Intrusive_Ref_Count_Base(const TAO_Intrusive_Ref_Count_Base&);
- TAO_Intrusive_Ref_Count_Base& operator=(const TAO_Intrusive_Ref_Count_Base&);
+ // Prevent copying/assignment.
+ TAO_Intrusive_Ref_Count_Base (const TAO_Intrusive_Ref_Count_Base&);
+ TAO_Intrusive_Ref_Count_Base& operator= (const TAO_Intrusive_Ref_Count_Base&);
};
+TAO_END_VERSIONED_NAMESPACE_DECL
+
#if defined (__ACE_INLINE__)
#include "Intrusive_Ref_Count_Base_T.inl"
#endif /* __ACE_INLINE__ */