Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tao / Tagged_Components.inl
blob36547daa1483179902395d81d9541fee5f8a6149
1 // -*- C++ -*-
2 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
4 ACE_INLINE
5 TAO_Tagged_Components::TAO_Tagged_Components ()
6   :  orb_type_ (0),
7      orb_type_set_ (0),
8      code_sets_set_ (0)
12 ACE_INLINE int
13 TAO_Tagged_Components::get_orb_type (CORBA::ULong& orb_type) const
15   if (this->orb_type_set_ == 1)
16     {
17       orb_type = this->orb_type_;
18     }
20   return this->orb_type_set_;
23 ACE_INLINE int
24 TAO_Tagged_Components::get_code_sets (
25   const CONV_FRAME::CodeSetComponentInfo* &ci) const
27   if (this->code_sets_set_ == 1)
28     {
29       ci = &this->code_sets_;
30     }
32   return this->code_sets_set_;
35 ACE_INLINE int
36 TAO_Tagged_Components::get_code_sets (
37   CONV_FRAME::CodeSetComponentInfo &ci) const
39   if (this->code_sets_set_ == 1)
40     {
41       ci = this->code_sets_;
42     }
44   return this->code_sets_set_;
47 ACE_INLINE bool
48 TAO_Tagged_Components::known_tag (IOP::ComponentId tag) const
50   return (tag == IOP::TAG_ORB_TYPE
51           || tag == IOP::TAG_CODE_SETS);
55 ACE_INLINE bool
56 TAO_Tagged_Components::unique_tag (IOP::ComponentId tag) const
58   return (tag == IOP::TAG_ORB_TYPE
59           || tag == IOP::TAG_CODE_SETS
60           || tag == IOP::TAG_POLICIES
61           || tag == TAO_TAG_ENDPOINTS
62           // || tag == IOP::TAG_ALTERNATE_IIOP_ADDRESS
63           || tag == IOP::TAG_COMPLETE_OBJECT_KEY
64           || tag == IOP::TAG_ENDPOINT_ID_POSITION
65           || tag == IOP::TAG_LOCATION_POLICY
66           || tag == IOP::TAG_FT_PRIMARY
67           || tag == IOP::TAG_FT_GROUP
68           || tag == IOP::TAG_DCE_STRING_BINDING
69           || tag == IOP::TAG_DCE_BINDING_NAME
70           || tag == IOP::TAG_DCE_NO_PIPES);
73 ACE_INLINE IOP::MultipleComponentProfile&
74 TAO_Tagged_Components::components ()
76   return this->components_;
79 TAO_END_VERSIONED_NAMESPACE_DECL