diff options
author | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-04-29 03:52:40 +0000 |
---|---|---|
committer | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-04-29 03:52:40 +0000 |
commit | 629ad6b8996c6057d10889f682b793e4fc1677fb (patch) | |
tree | 67521836dcc0ac048e3b3e8782edfbf83c239121 /TAO/tao/TAOC.i | |
parent | 1b7ee19343cf09427ceb269c939215b64515ea70 (diff) | |
download | ATCD-629ad6b8996c6057d10889f682b793e4fc1677fb.tar.gz |
ChangeLogTag:Fri Apr 28 20:09:34 2000 Carlos O'Ryan <coryan@uci.edu>
Diffstat (limited to 'TAO/tao/TAOC.i')
-rw-r--r-- | TAO/tao/TAOC.i | 300 |
1 files changed, 164 insertions, 136 deletions
diff --git a/TAO/tao/TAOC.i b/TAO/tao/TAOC.i index 558c634ce81..8d3d4543bc7 100644 --- a/TAO/tao/TAOC.i +++ b/TAO/tao/TAOC.i @@ -19,19 +19,26 @@ TAO::PrioritySpecification_var::PrioritySpecification_var (void) // default cons {} ACE_INLINE -TAO::PrioritySpecification_var::PrioritySpecification_var (TAO::PrioritySpecification *p) +TAO::PrioritySpecification_var::PrioritySpecification_var (PrioritySpecification *p) : ptr_ (p) {} ACE_INLINE -TAO::PrioritySpecification_var::PrioritySpecification_var (const TAO::PrioritySpecification_var &p) // copy constructor +TAO::PrioritySpecification_var::PrioritySpecification_var (const ::TAO::PrioritySpecification_var &p) // copy constructor { if (p.ptr_) - ACE_NEW (this->ptr_, TAO::PrioritySpecification (*p.ptr_)); + ACE_NEW (this->ptr_, ::TAO::PrioritySpecification (*p.ptr_)); else this->ptr_ = 0; } +// fixed-size types only +ACE_INLINE +TAO::PrioritySpecification_var::PrioritySpecification_var (const ::TAO::PrioritySpecification &p) +{ + ACE_NEW (this->ptr_, ::TAO::PrioritySpecification (p)); +} + ACE_INLINE TAO::PrioritySpecification_var::~PrioritySpecification_var (void) // destructor { @@ -39,80 +46,92 @@ TAO::PrioritySpecification_var::~PrioritySpecification_var (void) // destructor } ACE_INLINE TAO::PrioritySpecification_var & -TAO::PrioritySpecification_var::operator= (TAO::PrioritySpecification *p) +TAO::PrioritySpecification_var::operator= (PrioritySpecification *p) { delete this->ptr_; this->ptr_ = p; return *this; } -ACE_INLINE TAO::PrioritySpecification_var & -TAO::PrioritySpecification_var::operator= (const TAO::PrioritySpecification_var &p) +ACE_INLINE ::TAO::PrioritySpecification_var & +TAO::PrioritySpecification_var::operator= (const ::TAO::PrioritySpecification_var &p) { if (this != &p) { delete this->ptr_; - ACE_NEW_RETURN (this->ptr_, TAO::PrioritySpecification (*p.ptr_), *this); + ACE_NEW_RETURN (this->ptr_, ::TAO::PrioritySpecification (*p.ptr_), *this); + } + return *this; +} + +// fixed-size types only +ACE_INLINE TAO::PrioritySpecification_var & +TAO::PrioritySpecification_var::operator= (const ::TAO::PrioritySpecification &p) +{ + if (this->ptr_ != &p) + { + delete this->ptr_; + ACE_NEW_RETURN (this->ptr_, ::TAO::PrioritySpecification (p), *this); } return *this; } -ACE_INLINE const TAO::PrioritySpecification * +ACE_INLINE const ::TAO::PrioritySpecification * TAO::PrioritySpecification_var::operator-> (void) const { return this->ptr_; } -ACE_INLINE TAO::PrioritySpecification * +ACE_INLINE ::TAO::PrioritySpecification * TAO::PrioritySpecification_var::operator-> (void) { return this->ptr_; } ACE_INLINE -TAO::PrioritySpecification_var::operator const TAO::PrioritySpecification &() const // cast +TAO::PrioritySpecification_var::operator const ::TAO::PrioritySpecification &() const // cast { return *this->ptr_; } ACE_INLINE -TAO::PrioritySpecification_var::operator TAO::PrioritySpecification &() // cast +TAO::PrioritySpecification_var::operator ::TAO::PrioritySpecification &() // cast { return *this->ptr_; } ACE_INLINE -TAO::PrioritySpecification_var::operator TAO::PrioritySpecification &() const// cast +TAO::PrioritySpecification_var::operator ::TAO::PrioritySpecification &() const // cast { return *this->ptr_; } -ACE_INLINE const TAO::PrioritySpecification & +ACE_INLINE const ::TAO::PrioritySpecification & TAO::PrioritySpecification_var::in (void) const { return *this->ptr_; } -ACE_INLINE TAO::PrioritySpecification & +ACE_INLINE ::TAO::PrioritySpecification & TAO::PrioritySpecification_var::inout (void) { return *this->ptr_; } // mapping for fixed size -ACE_INLINE TAO::PrioritySpecification & +ACE_INLINE ::TAO::PrioritySpecification & TAO::PrioritySpecification_var::out (void) { return *this->ptr_; } -ACE_INLINE TAO::PrioritySpecification +ACE_INLINE ::TAO::PrioritySpecification TAO::PrioritySpecification_var::_retn (void) { return *this->ptr_; } -ACE_INLINE TAO::PrioritySpecification * +ACE_INLINE ::TAO::PrioritySpecification * TAO::PrioritySpecification_var::ptr (void) const { return this->ptr_; @@ -123,11 +142,6 @@ TAO::ClientPriorityPolicy::ClientPriorityPolicy (void) // default constructor {} ACE_INLINE -TAO::ClientPriorityPolicy::ClientPriorityPolicy (TAO_Stub *objref, TAO_ServantBase *_tao_servant, CORBA::Boolean _tao_collocated) // constructor - : CORBA_Object (objref, _tao_servant, _tao_collocated) -{} - -ACE_INLINE TAO::ClientPriorityPolicy::~ClientPriorityPolicy (void) // destructor {} @@ -141,23 +155,23 @@ TAO::ClientPriorityPolicy::~ClientPriorityPolicy (void) // destructor ACE_INLINE TAO::ClientPriorityPolicy_var::ClientPriorityPolicy_var (void) // default constructor - : ptr_ (TAO::ClientPriorityPolicy::_nil ()) + : ptr_ (ClientPriorityPolicy::_nil ()) {} ACE_INLINE -TAO::ClientPriorityPolicy_var::ClientPriorityPolicy_var (TAO::ClientPriorityPolicy_ptr p) +TAO::ClientPriorityPolicy_var::ClientPriorityPolicy_var (ClientPriorityPolicy_ptr p) : ptr_ (p) {} -ACE_INLINE TAO::ClientPriorityPolicy_ptr +ACE_INLINE ::TAO::ClientPriorityPolicy_ptr TAO::ClientPriorityPolicy_var::ptr (void) const { return this->ptr_; } ACE_INLINE -TAO::ClientPriorityPolicy_var::ClientPriorityPolicy_var (const TAO::ClientPriorityPolicy_var &p) // copy constructor - : ptr_ (TAO::ClientPriorityPolicy::_duplicate (p.ptr ())) +TAO::ClientPriorityPolicy_var::ClientPriorityPolicy_var (const ::TAO::ClientPriorityPolicy_var &p) // copy constructor + : ptr_ (ClientPriorityPolicy::_duplicate (p.ptr ())) {} ACE_INLINE @@ -167,7 +181,7 @@ TAO::ClientPriorityPolicy_var::~ClientPriorityPolicy_var (void) // destructor } ACE_INLINE TAO::ClientPriorityPolicy_var & -TAO::ClientPriorityPolicy_var::operator= (TAO::ClientPriorityPolicy_ptr p) +TAO::ClientPriorityPolicy_var::operator= (ClientPriorityPolicy_ptr p) { CORBA::release (this->ptr_); this->ptr_ = p; @@ -175,60 +189,60 @@ TAO::ClientPriorityPolicy_var::operator= (TAO::ClientPriorityPolicy_ptr p) } ACE_INLINE TAO::ClientPriorityPolicy_var & -TAO::ClientPriorityPolicy_var::operator= (const TAO::ClientPriorityPolicy_var &p) +TAO::ClientPriorityPolicy_var::operator= (const ::TAO::ClientPriorityPolicy_var &p) { if (this != &p) { CORBA::release (this->ptr_); - this->ptr_ = TAO::ClientPriorityPolicy::_duplicate (p.ptr ()); + this->ptr_ = ::TAO::ClientPriorityPolicy::_duplicate (p.ptr ()); } return *this; } ACE_INLINE -TAO::ClientPriorityPolicy_var::operator const TAO::ClientPriorityPolicy_ptr &() const // cast +TAO::ClientPriorityPolicy_var::operator const ::TAO::ClientPriorityPolicy_ptr &() const // cast { return this->ptr_; } ACE_INLINE -TAO::ClientPriorityPolicy_var::operator TAO::ClientPriorityPolicy_ptr &() // cast +TAO::ClientPriorityPolicy_var::operator ::TAO::ClientPriorityPolicy_ptr &() // cast { return this->ptr_; } -ACE_INLINE TAO::ClientPriorityPolicy_ptr +ACE_INLINE ::TAO::ClientPriorityPolicy_ptr TAO::ClientPriorityPolicy_var::operator-> (void) const { return this->ptr_; } -ACE_INLINE TAO::ClientPriorityPolicy_ptr +ACE_INLINE ::TAO::ClientPriorityPolicy_ptr TAO::ClientPriorityPolicy_var::in (void) const { return this->ptr_; } -ACE_INLINE TAO::ClientPriorityPolicy_ptr & +ACE_INLINE ::TAO::ClientPriorityPolicy_ptr & TAO::ClientPriorityPolicy_var::inout (void) { return this->ptr_; } -ACE_INLINE TAO::ClientPriorityPolicy_ptr & +ACE_INLINE ::TAO::ClientPriorityPolicy_ptr & TAO::ClientPriorityPolicy_var::out (void) { CORBA::release (this->ptr_); - this->ptr_ = TAO::ClientPriorityPolicy::_nil (); + this->ptr_ = ::TAO::ClientPriorityPolicy::_nil (); return this->ptr_; } -ACE_INLINE TAO::ClientPriorityPolicy_ptr +ACE_INLINE ::TAO::ClientPriorityPolicy_ptr TAO::ClientPriorityPolicy_var::_retn (void) { // yield ownership of managed obj reference - TAO::ClientPriorityPolicy_ptr val = this->ptr_; - this->ptr_ = TAO::ClientPriorityPolicy::_nil (); + ::TAO::ClientPriorityPolicy_ptr val = this->ptr_; + this->ptr_ = ::TAO::ClientPriorityPolicy::_nil (); return val; } @@ -244,59 +258,59 @@ TAO::ClientPriorityPolicy_var::_retn (void) // ************************************************************* ACE_INLINE -TAO::ClientPriorityPolicy_out::ClientPriorityPolicy_out (TAO::ClientPriorityPolicy_ptr &p) +TAO::ClientPriorityPolicy_out::ClientPriorityPolicy_out (ClientPriorityPolicy_ptr &p) : ptr_ (p) { - this->ptr_ = TAO::ClientPriorityPolicy::_nil (); + this->ptr_ = ::TAO::ClientPriorityPolicy::_nil (); } ACE_INLINE -TAO::ClientPriorityPolicy_out::ClientPriorityPolicy_out (TAO::ClientPriorityPolicy_var &p) // constructor from _var +TAO::ClientPriorityPolicy_out::ClientPriorityPolicy_out (ClientPriorityPolicy_var &p) // constructor from _var : ptr_ (p.out ()) { CORBA::release (this->ptr_); - this->ptr_ = TAO::ClientPriorityPolicy::_nil (); + this->ptr_ = ::TAO::ClientPriorityPolicy::_nil (); } ACE_INLINE -TAO::ClientPriorityPolicy_out::ClientPriorityPolicy_out (const TAO::ClientPriorityPolicy_out &p) // copy constructor - : ptr_ (ACE_const_cast (TAO::ClientPriorityPolicy_out&,p).ptr_) +TAO::ClientPriorityPolicy_out::ClientPriorityPolicy_out (const ::TAO::ClientPriorityPolicy_out &p) // copy constructor + : ptr_ (ACE_const_cast (ClientPriorityPolicy_out &, p).ptr_) {} -ACE_INLINE TAO::ClientPriorityPolicy_out & -TAO::ClientPriorityPolicy_out::operator= (const TAO::ClientPriorityPolicy_out &p) +ACE_INLINE ::TAO::ClientPriorityPolicy_out & +TAO::ClientPriorityPolicy_out::operator= (const ::TAO::ClientPriorityPolicy_out &p) { - this->ptr_ = ACE_const_cast (TAO::ClientPriorityPolicy_out&,p).ptr_; + this->ptr_ = ACE_const_cast (ClientPriorityPolicy_out&, p).ptr_; return *this; } ACE_INLINE TAO::ClientPriorityPolicy_out & -TAO::ClientPriorityPolicy_out::operator= (const TAO::ClientPriorityPolicy_var &p) +TAO::ClientPriorityPolicy_out::operator= (const ::TAO::ClientPriorityPolicy_var &p) { - this->ptr_ = TAO::ClientPriorityPolicy::_duplicate (p.ptr ()); + this->ptr_ = ::TAO::ClientPriorityPolicy::_duplicate (p.ptr ()); return *this; } ACE_INLINE TAO::ClientPriorityPolicy_out & -TAO::ClientPriorityPolicy_out::operator= (TAO::ClientPriorityPolicy_ptr p) +TAO::ClientPriorityPolicy_out::operator= (ClientPriorityPolicy_ptr p) { this->ptr_ = p; return *this; } ACE_INLINE -TAO::ClientPriorityPolicy_out::operator TAO::ClientPriorityPolicy_ptr &() // cast +TAO::ClientPriorityPolicy_out::operator ::TAO::ClientPriorityPolicy_ptr &() // cast { return this->ptr_; } -ACE_INLINE TAO::ClientPriorityPolicy_ptr & +ACE_INLINE ::TAO::ClientPriorityPolicy_ptr & TAO::ClientPriorityPolicy_out::ptr (void) // ptr { return this->ptr_; } -ACE_INLINE TAO::ClientPriorityPolicy_ptr +ACE_INLINE ::TAO::ClientPriorityPolicy_ptr TAO::ClientPriorityPolicy_out::operator-> (void) { return this->ptr_; @@ -305,32 +319,6 @@ TAO::ClientPriorityPolicy_out::operator-> (void) #endif /* end #if !defined */ -ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const TAO::PrioritySpecification &_tao_aggregate) -{ - if ( - (strm << _tao_aggregate.mode) && - (strm << _tao_aggregate.min_priority) && - (strm << _tao_aggregate.max_priority) - ) - return 1; - else - return 0; - -} - -ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, TAO::PrioritySpecification &_tao_aggregate) -{ - if ( - (strm >> _tao_aggregate.mode) && - (strm >> _tao_aggregate.min_priority) && - (strm >> _tao_aggregate.max_priority) - ) - return 1; - else - return 0; - -} - #endif /* TAO_HAS_CLIENT_PRIORITY_POLICY == 1 */ #if (TAO_HAS_BUFFERING_CONSTRAINT_POLICY == 1) @@ -345,19 +333,26 @@ TAO::BufferingConstraint_var::BufferingConstraint_var (void) // default construc {} ACE_INLINE -TAO::BufferingConstraint_var::BufferingConstraint_var (TAO::BufferingConstraint *p) +TAO::BufferingConstraint_var::BufferingConstraint_var (BufferingConstraint *p) : ptr_ (p) {} ACE_INLINE -TAO::BufferingConstraint_var::BufferingConstraint_var (const TAO::BufferingConstraint_var &p) // copy constructor +TAO::BufferingConstraint_var::BufferingConstraint_var (const ::TAO::BufferingConstraint_var &p) // copy constructor { if (p.ptr_) - ACE_NEW (this->ptr_, TAO::BufferingConstraint (*p.ptr_)); + ACE_NEW (this->ptr_, ::TAO::BufferingConstraint (*p.ptr_)); else this->ptr_ = 0; } +// fixed-size types only +ACE_INLINE +TAO::BufferingConstraint_var::BufferingConstraint_var (const ::TAO::BufferingConstraint &p) +{ + ACE_NEW (this->ptr_, ::TAO::BufferingConstraint (p)); +} + ACE_INLINE TAO::BufferingConstraint_var::~BufferingConstraint_var (void) // destructor { @@ -365,80 +360,92 @@ TAO::BufferingConstraint_var::~BufferingConstraint_var (void) // destructor } ACE_INLINE TAO::BufferingConstraint_var & -TAO::BufferingConstraint_var::operator= (TAO::BufferingConstraint *p) +TAO::BufferingConstraint_var::operator= (BufferingConstraint *p) { delete this->ptr_; this->ptr_ = p; return *this; } -ACE_INLINE TAO::BufferingConstraint_var & -TAO::BufferingConstraint_var::operator= (const TAO::BufferingConstraint_var &p) +ACE_INLINE ::TAO::BufferingConstraint_var & +TAO::BufferingConstraint_var::operator= (const ::TAO::BufferingConstraint_var &p) { if (this != &p) { delete this->ptr_; - ACE_NEW_RETURN (this->ptr_, TAO::BufferingConstraint (*p.ptr_), *this); + ACE_NEW_RETURN (this->ptr_, ::TAO::BufferingConstraint (*p.ptr_), *this); + } + return *this; +} + +// fixed-size types only +ACE_INLINE TAO::BufferingConstraint_var & +TAO::BufferingConstraint_var::operator= (const ::TAO::BufferingConstraint &p) +{ + if (this->ptr_ != &p) + { + delete this->ptr_; + ACE_NEW_RETURN (this->ptr_, ::TAO::BufferingConstraint (p), *this); } return *this; } -ACE_INLINE const TAO::BufferingConstraint * +ACE_INLINE const ::TAO::BufferingConstraint * TAO::BufferingConstraint_var::operator-> (void) const { return this->ptr_; } -ACE_INLINE TAO::BufferingConstraint * +ACE_INLINE ::TAO::BufferingConstraint * TAO::BufferingConstraint_var::operator-> (void) { return this->ptr_; } ACE_INLINE -TAO::BufferingConstraint_var::operator const TAO::BufferingConstraint &() const // cast +TAO::BufferingConstraint_var::operator const ::TAO::BufferingConstraint &() const // cast { return *this->ptr_; } ACE_INLINE -TAO::BufferingConstraint_var::operator TAO::BufferingConstraint &() // cast +TAO::BufferingConstraint_var::operator ::TAO::BufferingConstraint &() // cast { return *this->ptr_; } ACE_INLINE -TAO::BufferingConstraint_var::operator TAO::BufferingConstraint &() const// cast +TAO::BufferingConstraint_var::operator ::TAO::BufferingConstraint &() const // cast { return *this->ptr_; } -ACE_INLINE const TAO::BufferingConstraint & +ACE_INLINE const ::TAO::BufferingConstraint & TAO::BufferingConstraint_var::in (void) const { return *this->ptr_; } -ACE_INLINE TAO::BufferingConstraint & +ACE_INLINE ::TAO::BufferingConstraint & TAO::BufferingConstraint_var::inout (void) { return *this->ptr_; } // mapping for fixed size -ACE_INLINE TAO::BufferingConstraint & +ACE_INLINE ::TAO::BufferingConstraint & TAO::BufferingConstraint_var::out (void) { return *this->ptr_; } -ACE_INLINE TAO::BufferingConstraint +ACE_INLINE ::TAO::BufferingConstraint TAO::BufferingConstraint_var::_retn (void) { return *this->ptr_; } -ACE_INLINE TAO::BufferingConstraint * +ACE_INLINE ::TAO::BufferingConstraint * TAO::BufferingConstraint_var::ptr (void) const { return this->ptr_; @@ -449,11 +456,6 @@ TAO::BufferingConstraintPolicy::BufferingConstraintPolicy (void) // default cons {} ACE_INLINE -TAO::BufferingConstraintPolicy::BufferingConstraintPolicy (TAO_Stub *objref, TAO_ServantBase *_tao_servant, CORBA::Boolean _tao_collocated) // constructor - : CORBA_Object (objref, _tao_servant, _tao_collocated) -{} - -ACE_INLINE TAO::BufferingConstraintPolicy::~BufferingConstraintPolicy (void) // destructor {} @@ -467,23 +469,23 @@ TAO::BufferingConstraintPolicy::~BufferingConstraintPolicy (void) // destructor ACE_INLINE TAO::BufferingConstraintPolicy_var::BufferingConstraintPolicy_var (void) // default constructor - : ptr_ (TAO::BufferingConstraintPolicy::_nil ()) + : ptr_ (BufferingConstraintPolicy::_nil ()) {} ACE_INLINE -TAO::BufferingConstraintPolicy_var::BufferingConstraintPolicy_var (TAO::BufferingConstraintPolicy_ptr p) +TAO::BufferingConstraintPolicy_var::BufferingConstraintPolicy_var (BufferingConstraintPolicy_ptr p) : ptr_ (p) {} -ACE_INLINE TAO::BufferingConstraintPolicy_ptr +ACE_INLINE ::TAO::BufferingConstraintPolicy_ptr TAO::BufferingConstraintPolicy_var::ptr (void) const { return this->ptr_; } ACE_INLINE -TAO::BufferingConstraintPolicy_var::BufferingConstraintPolicy_var (const TAO::BufferingConstraintPolicy_var &p) // copy constructor - : ptr_ (TAO::BufferingConstraintPolicy::_duplicate (p.ptr ())) +TAO::BufferingConstraintPolicy_var::BufferingConstraintPolicy_var (const ::TAO::BufferingConstraintPolicy_var &p) // copy constructor + : ptr_ (BufferingConstraintPolicy::_duplicate (p.ptr ())) {} ACE_INLINE @@ -493,7 +495,7 @@ TAO::BufferingConstraintPolicy_var::~BufferingConstraintPolicy_var (void) // des } ACE_INLINE TAO::BufferingConstraintPolicy_var & -TAO::BufferingConstraintPolicy_var::operator= (TAO::BufferingConstraintPolicy_ptr p) +TAO::BufferingConstraintPolicy_var::operator= (BufferingConstraintPolicy_ptr p) { CORBA::release (this->ptr_); this->ptr_ = p; @@ -501,60 +503,60 @@ TAO::BufferingConstraintPolicy_var::operator= (TAO::BufferingConstraintPolicy_pt } ACE_INLINE TAO::BufferingConstraintPolicy_var & -TAO::BufferingConstraintPolicy_var::operator= (const TAO::BufferingConstraintPolicy_var &p) +TAO::BufferingConstraintPolicy_var::operator= (const ::TAO::BufferingConstraintPolicy_var &p) { if (this != &p) { CORBA::release (this->ptr_); - this->ptr_ = TAO::BufferingConstraintPolicy::_duplicate (p.ptr ()); + this->ptr_ = ::TAO::BufferingConstraintPolicy::_duplicate (p.ptr ()); } return *this; } ACE_INLINE -TAO::BufferingConstraintPolicy_var::operator const TAO::BufferingConstraintPolicy_ptr &() const // cast +TAO::BufferingConstraintPolicy_var::operator const ::TAO::BufferingConstraintPolicy_ptr &() const // cast { return this->ptr_; } ACE_INLINE -TAO::BufferingConstraintPolicy_var::operator TAO::BufferingConstraintPolicy_ptr &() // cast +TAO::BufferingConstraintPolicy_var::operator ::TAO::BufferingConstraintPolicy_ptr &() // cast { return this->ptr_; } -ACE_INLINE TAO::BufferingConstraintPolicy_ptr +ACE_INLINE ::TAO::BufferingConstraintPolicy_ptr TAO::BufferingConstraintPolicy_var::operator-> (void) const { return this->ptr_; } -ACE_INLINE TAO::BufferingConstraintPolicy_ptr +ACE_INLINE ::TAO::BufferingConstraintPolicy_ptr TAO::BufferingConstraintPolicy_var::in (void) const { return this->ptr_; } -ACE_INLINE TAO::BufferingConstraintPolicy_ptr & +ACE_INLINE ::TAO::BufferingConstraintPolicy_ptr & TAO::BufferingConstraintPolicy_var::inout (void) { return this->ptr_; } -ACE_INLINE TAO::BufferingConstraintPolicy_ptr & +ACE_INLINE ::TAO::BufferingConstraintPolicy_ptr & TAO::BufferingConstraintPolicy_var::out (void) { CORBA::release (this->ptr_); - this->ptr_ = TAO::BufferingConstraintPolicy::_nil (); + this->ptr_ = ::TAO::BufferingConstraintPolicy::_nil (); return this->ptr_; } -ACE_INLINE TAO::BufferingConstraintPolicy_ptr +ACE_INLINE ::TAO::BufferingConstraintPolicy_ptr TAO::BufferingConstraintPolicy_var::_retn (void) { // yield ownership of managed obj reference - TAO::BufferingConstraintPolicy_ptr val = this->ptr_; - this->ptr_ = TAO::BufferingConstraintPolicy::_nil (); + ::TAO::BufferingConstraintPolicy_ptr val = this->ptr_; + this->ptr_ = ::TAO::BufferingConstraintPolicy::_nil (); return val; } @@ -570,59 +572,59 @@ TAO::BufferingConstraintPolicy_var::_retn (void) // ************************************************************* ACE_INLINE -TAO::BufferingConstraintPolicy_out::BufferingConstraintPolicy_out (TAO::BufferingConstraintPolicy_ptr &p) +TAO::BufferingConstraintPolicy_out::BufferingConstraintPolicy_out (BufferingConstraintPolicy_ptr &p) : ptr_ (p) { - this->ptr_ = TAO::BufferingConstraintPolicy::_nil (); + this->ptr_ = ::TAO::BufferingConstraintPolicy::_nil (); } ACE_INLINE -TAO::BufferingConstraintPolicy_out::BufferingConstraintPolicy_out (TAO::BufferingConstraintPolicy_var &p) // constructor from _var +TAO::BufferingConstraintPolicy_out::BufferingConstraintPolicy_out (BufferingConstraintPolicy_var &p) // constructor from _var : ptr_ (p.out ()) { CORBA::release (this->ptr_); - this->ptr_ = TAO::BufferingConstraintPolicy::_nil (); + this->ptr_ = ::TAO::BufferingConstraintPolicy::_nil (); } ACE_INLINE -TAO::BufferingConstraintPolicy_out::BufferingConstraintPolicy_out (const TAO::BufferingConstraintPolicy_out &p) // copy constructor - : ptr_ (ACE_const_cast (TAO::BufferingConstraintPolicy_out&,p).ptr_) +TAO::BufferingConstraintPolicy_out::BufferingConstraintPolicy_out (const ::TAO::BufferingConstraintPolicy_out &p) // copy constructor + : ptr_ (ACE_const_cast (BufferingConstraintPolicy_out &, p).ptr_) {} -ACE_INLINE TAO::BufferingConstraintPolicy_out & -TAO::BufferingConstraintPolicy_out::operator= (const TAO::BufferingConstraintPolicy_out &p) +ACE_INLINE ::TAO::BufferingConstraintPolicy_out & +TAO::BufferingConstraintPolicy_out::operator= (const ::TAO::BufferingConstraintPolicy_out &p) { - this->ptr_ = ACE_const_cast (TAO::BufferingConstraintPolicy_out&,p).ptr_; + this->ptr_ = ACE_const_cast (BufferingConstraintPolicy_out&, p).ptr_; return *this; } ACE_INLINE TAO::BufferingConstraintPolicy_out & -TAO::BufferingConstraintPolicy_out::operator= (const TAO::BufferingConstraintPolicy_var &p) +TAO::BufferingConstraintPolicy_out::operator= (const ::TAO::BufferingConstraintPolicy_var &p) { - this->ptr_ = TAO::BufferingConstraintPolicy::_duplicate (p.ptr ()); + this->ptr_ = ::TAO::BufferingConstraintPolicy::_duplicate (p.ptr ()); return *this; } ACE_INLINE TAO::BufferingConstraintPolicy_out & -TAO::BufferingConstraintPolicy_out::operator= (TAO::BufferingConstraintPolicy_ptr p) +TAO::BufferingConstraintPolicy_out::operator= (BufferingConstraintPolicy_ptr p) { this->ptr_ = p; return *this; } ACE_INLINE -TAO::BufferingConstraintPolicy_out::operator TAO::BufferingConstraintPolicy_ptr &() // cast +TAO::BufferingConstraintPolicy_out::operator ::TAO::BufferingConstraintPolicy_ptr &() // cast { return this->ptr_; } -ACE_INLINE TAO::BufferingConstraintPolicy_ptr & +ACE_INLINE ::TAO::BufferingConstraintPolicy_ptr & TAO::BufferingConstraintPolicy_out::ptr (void) // ptr { return this->ptr_; } -ACE_INLINE TAO::BufferingConstraintPolicy_ptr +ACE_INLINE ::TAO::BufferingConstraintPolicy_ptr TAO::BufferingConstraintPolicy_out::operator-> (void) { return this->ptr_; @@ -631,6 +633,32 @@ TAO::BufferingConstraintPolicy_out::operator-> (void) #endif /* end #if !defined */ +ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const TAO::PrioritySpecification &_tao_aggregate) +{ + if ( + (strm << _tao_aggregate.mode) && + (strm << _tao_aggregate.min_priority) && + (strm << _tao_aggregate.max_priority) + ) + return 1; + else + return 0; + +} + +ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, TAO::PrioritySpecification &_tao_aggregate) +{ + if ( + (strm >> _tao_aggregate.mode) && + (strm >> _tao_aggregate.min_priority) && + (strm >> _tao_aggregate.max_priority) + ) + return 1; + else + return 0; + +} + ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const TAO::BufferingConstraint &_tao_aggregate) { if ( |