00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 #ifndef TAO_REFCOUNTED_OBJECTKEY_H
00014 #define TAO_REFCOUNTED_OBJECTKEY_H
00015 
00016 #include  "ace/pre.h"
00017 
00018 #include "tao/TAO_Export.h"
00019 
00020 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00021 # pragma once
00022 #endif 
00023 
00024 #include "tao/Object_KeyC.h"
00025 
00026 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00027 
00028 namespace TAO
00029 {
00030 
00031 
00032 
00033 
00034 
00035 
00036 
00037 
00038 
00039 
00040   class TAO_Export Refcounted_ObjectKey
00041   {
00042   public:
00043 
00044     Refcounted_ObjectKey (const ObjectKey &ref);
00045 
00046 
00047     const ObjectKey &object_key (void) const;
00048 
00049   protected:
00050     friend class ObjectKey_Table;
00051 
00052 
00053     ~Refcounted_ObjectKey (void);
00054 
00055 
00056     void incr_refcount (void);
00057 
00058 
00059 
00060     CORBA::ULong decr_refcount (void);
00061 
00062   private:
00063 
00064     ObjectKey object_key_;
00065 
00066 
00067     CORBA::ULong ref_count_;
00068   };
00069 }
00070 
00071 TAO_END_VERSIONED_NAMESPACE_DECL
00072 
00073 #if defined (__ACE_INLINE__)
00074 #include "tao/Refcounted_ObjectKey.inl"
00075 #endif 
00076 
00077 #include  "ace/post.h"
00078 
00079 #endif