Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / Profile.inl
blobb2ba7477f99b07ec1bfbb346f41b1b2b33a27074
1 // -*- C++ -*-
2 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
4 ACE_INLINE CORBA::ULong
5 TAO_Profile::tag () const
7   return this->tag_;
10 ACE_INLINE const TAO_GIOP_Message_Version &
11 TAO_Profile::version () const
13   return this->version_;
16 ACE_INLINE TAO_ORB_Core *
17 TAO_Profile::orb_core () const
19   return this->orb_core_;
22 ACE_INLINE void
23 TAO_Profile::forward_to (TAO_MProfile *mprofiles)
25   this->forward_to_ = mprofiles;
28 ACE_INLINE TAO_MProfile *
29 TAO_Profile::forward_to ()
31   return this->forward_to_;
34 ACE_INLINE TAO_MProfile *
35 TAO_Profile::forward_to_i ()
37   return this->forward_to_;
40 ACE_INLINE const TAO_Tagged_Components&
41 TAO_Profile::tagged_components () const
43   return this->tagged_components_;
46 ACE_INLINE TAO_Tagged_Components&
47 TAO_Profile::tagged_components ()
49   return this->tagged_components_;
52 ACE_INLINE CORBA::Short
53 TAO_Profile::addressing_mode () const
55   return this->addressing_mode_;
58 ACE_INLINE const TAO::ObjectKey &
59 TAO_Profile::object_key () const
61   return this->ref_object_key_->object_key ();
64 ACE_INLINE unsigned long
65 TAO_Profile::_incr_refcnt ()
67   return ++this->refcount_;
70 ACE_INLINE unsigned long
71 TAO_Profile::_decr_refcnt ()
73   unsigned long count = --this->refcount_;
74   if (count == 0)
75     {
76       // refcount is 0, so delete us!
77       // delete will call our ~ destructor which in turn deletes stuff.
78       delete this;
79     }
80   return count;
85 TAO_END_VERSIONED_NAMESPACE_DECL