2 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
4 // *************************************************************
5 // Inline operations for class TAO_Priority_Mapping_Manager_var
6 // *************************************************************
9 TAO_Priority_Mapping_Manager_var::TAO_Priority_Mapping_Manager_var () // default constructor
10 : ptr_ (TAO_Priority_Mapping_Manager::_nil ())
14 TAO_Priority_Mapping_Manager_var::TAO_Priority_Mapping_Manager_var (TAO_Priority_Mapping_Manager_ptr p)
18 ACE_INLINE ::TAO_Priority_Mapping_Manager_ptr
19 TAO_Priority_Mapping_Manager_var::ptr () const
25 TAO_Priority_Mapping_Manager_var::TAO_Priority_Mapping_Manager_var (const ::TAO_Priority_Mapping_Manager_var &p) // copy constructor
27 ptr_ (TAO_Priority_Mapping_Manager::_duplicate (p.ptr ()))
31 TAO_Priority_Mapping_Manager_var::~TAO_Priority_Mapping_Manager_var () // destructor
33 CORBA::release (this->ptr_);
36 ACE_INLINE TAO_Priority_Mapping_Manager_var &
37 TAO_Priority_Mapping_Manager_var::operator= (TAO_Priority_Mapping_Manager_ptr p)
39 CORBA::release (this->ptr_);
44 ACE_INLINE TAO_Priority_Mapping_Manager_var &
45 TAO_Priority_Mapping_Manager_var::operator= (const ::TAO_Priority_Mapping_Manager_var &p)
49 CORBA::release (this->ptr_);
50 this->ptr_ = ::TAO_Priority_Mapping_Manager::_duplicate (p.ptr ());
56 TAO_Priority_Mapping_Manager_var::operator const ::TAO_Priority_Mapping_Manager_ptr &() const // cast
62 TAO_Priority_Mapping_Manager_var::operator ::TAO_Priority_Mapping_Manager_ptr &() // cast
67 ACE_INLINE ::TAO_Priority_Mapping_Manager_ptr
68 TAO_Priority_Mapping_Manager_var::operator-> () const
73 ACE_INLINE ::TAO_Priority_Mapping_Manager_ptr
74 TAO_Priority_Mapping_Manager_var::in () const
79 ACE_INLINE ::TAO_Priority_Mapping_Manager_ptr &
80 TAO_Priority_Mapping_Manager_var::inout ()
85 ACE_INLINE ::TAO_Priority_Mapping_Manager_ptr &
86 TAO_Priority_Mapping_Manager_var::out ()
88 CORBA::release (this->ptr_);
89 this->ptr_ = ::TAO_Priority_Mapping_Manager::_nil ();
93 ACE_INLINE ::TAO_Priority_Mapping_Manager_ptr
94 TAO_Priority_Mapping_Manager_var::_retn ()
96 // yield ownership of managed obj reference
97 ::TAO_Priority_Mapping_Manager_ptr val = this->ptr_;
98 this->ptr_ = ::TAO_Priority_Mapping_Manager::_nil ();
102 ACE_INLINE ::TAO_Priority_Mapping_Manager_ptr
103 TAO_Priority_Mapping_Manager_var::duplicate (TAO_Priority_Mapping_Manager_ptr p)
105 return ::TAO_Priority_Mapping_Manager::_duplicate (p);
109 TAO_Priority_Mapping_Manager_var::release (TAO_Priority_Mapping_Manager_ptr p)
114 ACE_INLINE ::TAO_Priority_Mapping_Manager_ptr
115 TAO_Priority_Mapping_Manager_var::nil ()
117 return ::TAO_Priority_Mapping_Manager::_nil ();
120 ACE_INLINE ::TAO_Priority_Mapping_Manager_ptr
121 TAO_Priority_Mapping_Manager_var::narrow (
126 return ::TAO_Priority_Mapping_Manager::_narrow (p);
129 ACE_INLINE CORBA::Object *
130 TAO_Priority_Mapping_Manager_var::upcast (void *src)
132 TAO_Priority_Mapping_Manager **tmp =
133 static_cast<TAO_Priority_Mapping_Manager **> (src);
138 // *************************************************************
139 // Inline operations for class TAO_Priority_Mapping_Manager_out
140 // *************************************************************
143 TAO_Priority_Mapping_Manager_out::TAO_Priority_Mapping_Manager_out (TAO_Priority_Mapping_Manager_ptr &p)
146 this->ptr_ = ::TAO_Priority_Mapping_Manager::_nil ();
150 TAO_Priority_Mapping_Manager_out::TAO_Priority_Mapping_Manager_out (TAO_Priority_Mapping_Manager_var &p) // constructor from _var
153 CORBA::release (this->ptr_);
154 this->ptr_ = ::TAO_Priority_Mapping_Manager::_nil ();
158 TAO_Priority_Mapping_Manager_out::TAO_Priority_Mapping_Manager_out (const ::TAO_Priority_Mapping_Manager_out &p) // copy constructor
159 : ptr_ (const_cast<TAO_Priority_Mapping_Manager_out &> (p).ptr_)
162 ACE_INLINE ::TAO_Priority_Mapping_Manager_out &
163 TAO_Priority_Mapping_Manager_out::operator= (const ::TAO_Priority_Mapping_Manager_out &p)
165 this->ptr_ = const_cast<TAO_Priority_Mapping_Manager_out&> (p).ptr_;
169 ACE_INLINE TAO_Priority_Mapping_Manager_out &
170 TAO_Priority_Mapping_Manager_out::operator= (const ::TAO_Priority_Mapping_Manager_var &p)
172 this->ptr_ = ::TAO_Priority_Mapping_Manager::_duplicate (p.ptr ());
176 ACE_INLINE TAO_Priority_Mapping_Manager_out &
177 TAO_Priority_Mapping_Manager_out::operator= (TAO_Priority_Mapping_Manager_ptr p)
184 TAO_Priority_Mapping_Manager_out::operator ::TAO_Priority_Mapping_Manager_ptr &() // cast
189 ACE_INLINE ::TAO_Priority_Mapping_Manager_ptr &
190 TAO_Priority_Mapping_Manager_out::ptr () // ptr
195 ACE_INLINE ::TAO_Priority_Mapping_Manager_ptr
196 TAO_Priority_Mapping_Manager_out::operator-> ()
201 ///////////////////////////////////////////////////////////////////////////
203 TAO_Priority_Mapping_Manager::TAO_Priority_Mapping_Manager (RTCORBA::PriorityMapping * mapping)
208 ACE_INLINE RTCORBA::PriorityMapping *
209 TAO_Priority_Mapping_Manager::mapping ()
211 return this->mapping_;
215 TAO_Priority_Mapping_Manager::mapping (RTCORBA::PriorityMapping *mapping)
217 delete this->mapping_;
218 this->mapping_ = mapping;
221 TAO_END_VERSIONED_NAMESPACE_DECL