2 #include "tao/ORB_Core.h"
5 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
7 // *************************************************************
8 // Inline operations for class TAO_RTScheduler_Manager_var
9 // *************************************************************
12 TAO_RTScheduler_Manager_var::TAO_RTScheduler_Manager_var ()
13 : ptr_ (TAO_RTScheduler_Manager::_nil ())
17 TAO_RTScheduler_Manager_var::TAO_RTScheduler_Manager_var (
18 TAO_RTScheduler_Manager_ptr p)
22 ACE_INLINE ::TAO_RTScheduler_Manager_ptr
23 TAO_RTScheduler_Manager_var::ptr () const
29 TAO_RTScheduler_Manager_var::TAO_RTScheduler_Manager_var (
30 const ::TAO_RTScheduler_Manager_var &p) // copy constructor
32 ptr_ (TAO_RTScheduler_Manager::_duplicate (p.ptr ()))
36 TAO_RTScheduler_Manager_var::~TAO_RTScheduler_Manager_var ()
38 CORBA::release (this->ptr_);
41 ACE_INLINE TAO_RTScheduler_Manager_var &
42 TAO_RTScheduler_Manager_var::operator= (TAO_RTScheduler_Manager_ptr p)
44 CORBA::release (this->ptr_);
49 ACE_INLINE TAO_RTScheduler_Manager_var &
50 TAO_RTScheduler_Manager_var::operator= (const ::TAO_RTScheduler_Manager_var &p)
54 CORBA::release (this->ptr_);
55 this->ptr_ = ::TAO_RTScheduler_Manager::_duplicate (p.ptr ());
62 TAO_RTScheduler_Manager_var::operator const ::TAO_RTScheduler_Manager_ptr &() const // cast
68 TAO_RTScheduler_Manager_var::operator ::TAO_RTScheduler_Manager_ptr &() // cast
73 ACE_INLINE ::TAO_RTScheduler_Manager_ptr
74 TAO_RTScheduler_Manager_var::operator-> () const
79 ACE_INLINE ::TAO_RTScheduler_Manager_ptr
80 TAO_RTScheduler_Manager_var::in () const
85 ACE_INLINE ::TAO_RTScheduler_Manager_ptr &
86 TAO_RTScheduler_Manager_var::inout ()
91 ACE_INLINE ::TAO_RTScheduler_Manager_ptr &
92 TAO_RTScheduler_Manager_var::out ()
94 CORBA::release (this->ptr_);
95 this->ptr_ = ::TAO_RTScheduler_Manager::_nil ();
99 ACE_INLINE ::TAO_RTScheduler_Manager_ptr
100 TAO_RTScheduler_Manager_var::_retn ()
102 // yield ownership of managed obj reference
103 ::TAO_RTScheduler_Manager_ptr val = this->ptr_;
104 this->ptr_ = ::TAO_RTScheduler_Manager::_nil ();
108 ACE_INLINE ::TAO_RTScheduler_Manager_ptr
109 TAO_RTScheduler_Manager_var::duplicate (TAO_RTScheduler_Manager_ptr p)
111 return ::TAO_RTScheduler_Manager::_duplicate (p);
115 TAO_RTScheduler_Manager_var::release (TAO_RTScheduler_Manager_ptr p)
120 ACE_INLINE ::TAO_RTScheduler_Manager_ptr
121 TAO_RTScheduler_Manager_var::nil ()
123 return ::TAO_RTScheduler_Manager::_nil ();
126 ACE_INLINE ::TAO_RTScheduler_Manager_ptr
127 TAO_RTScheduler_Manager_var::narrow (
131 return ::TAO_RTScheduler_Manager::_narrow (p);
134 ACE_INLINE CORBA::Object *
135 TAO_RTScheduler_Manager_var::upcast (void *src)
137 TAO_RTScheduler_Manager **tmp =
138 static_cast<TAO_RTScheduler_Manager **> (src);
143 // *************************************************************
144 // Inline operations for class TAO_RTScheduler_Manager_out
145 // *************************************************************
148 TAO_RTScheduler_Manager_out::TAO_RTScheduler_Manager_out (TAO_RTScheduler_Manager_ptr &p)
151 this->ptr_ = ::TAO_RTScheduler_Manager::_nil ();
155 TAO_RTScheduler_Manager_out::TAO_RTScheduler_Manager_out (TAO_RTScheduler_Manager_var &p) // constructor from _var
158 CORBA::release (this->ptr_);
159 this->ptr_ = ::TAO_RTScheduler_Manager::_nil ();
163 TAO_RTScheduler_Manager_out::TAO_RTScheduler_Manager_out (const ::TAO_RTScheduler_Manager_out &p) // copy constructor
164 : ptr_ (const_cast<TAO_RTScheduler_Manager_out &> (p).ptr_)
167 ACE_INLINE ::TAO_RTScheduler_Manager_out &
168 TAO_RTScheduler_Manager_out::operator= (const ::TAO_RTScheduler_Manager_out &p)
170 this->ptr_ = const_cast<TAO_RTScheduler_Manager_out&> (p).ptr_;
174 ACE_INLINE TAO_RTScheduler_Manager_out &
175 TAO_RTScheduler_Manager_out::operator= (const ::TAO_RTScheduler_Manager_var &p)
177 this->ptr_ = ::TAO_RTScheduler_Manager::_duplicate (p.ptr ());
181 ACE_INLINE TAO_RTScheduler_Manager_out &
182 TAO_RTScheduler_Manager_out::operator= (TAO_RTScheduler_Manager_ptr p)
189 TAO_RTScheduler_Manager_out::operator ::TAO_RTScheduler_Manager_ptr &() // cast
194 ACE_INLINE ::TAO_RTScheduler_Manager_ptr &
195 TAO_RTScheduler_Manager_out::ptr () // ptr
200 ACE_INLINE ::TAO_RTScheduler_Manager_ptr
201 TAO_RTScheduler_Manager_out::operator-> ()
206 ///////////////////////////////////////////////////////////////////////////
208 TAO_RTScheduler_Manager::TAO_RTScheduler_Manager (TAO_ORB_Core* orb)
213 ACE_INLINE RTScheduling::Scheduler_ptr
214 TAO_RTScheduler_Manager::rtscheduler ()
216 return RTScheduling::Scheduler::_duplicate (this->rtscheduler_.in());
220 TAO_RTScheduler_Manager::rtscheduler (RTScheduling::Scheduler_ptr rtscheduler)
222 this->rtscheduler_ = RTScheduling::Scheduler::_duplicate (rtscheduler);
223 this->orb_->orb ()->register_initial_reference (
225 this->rtscheduler_.in ()
229 TAO_END_VERSIONED_NAMESPACE_DECL