2 #include "tao/ORB_Core.h"
6 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
8 ACE_INLINE ::TAO_ORB_Core *
9 TAO::ORB_Table::first_orb ()
11 return this->first_orb_;
14 ACE_INLINE TAO::ORB_Table::iterator
15 TAO::ORB_Table::begin ()
17 return this->table_.begin ();
20 ACE_INLINE TAO::ORB_Table::iterator
21 TAO::ORB_Table::end ()
23 return this->table_.end ();
26 /// Accessor to the underlying table_
27 ACE_INLINE TAO::ORB_Table::Table *
28 TAO::ORB_Table::table ()
33 ACE_INLINE TAO_SYNCH_MUTEX &
34 TAO::ORB_Table::lock ()
39 // ****************************************************************
42 TAO::ORB_Core_Ref_Counter::ORB_Core_Ref_Counter ()
48 TAO::ORB_Core_Ref_Counter::ORB_Core_Ref_Counter (::TAO_ORB_Core * core)
51 // ACE_ASSERT (core != 0);
53 // Note that the TAO_ORB_Core pointer should always be valid in this
57 (void) this->core_->_incr_refcnt ();
61 TAO::ORB_Core_Ref_Counter::~ORB_Core_Ref_Counter ()
64 (void) this->core_->_decr_refcnt (); // Should never throw.
68 TAO::ORB_Core_Ref_Counter::ORB_Core_Ref_Counter (
69 TAO::ORB_Core_Ref_Counter const & rhs)
74 (void) this->core_->_incr_refcnt ();
78 TAO::ORB_Core_Ref_Counter::operator= (TAO::ORB_Core_Ref_Counter const & rhs)
80 // Strongly exception safe. May not be strictly necessary, but
81 // let's do things the right way, regardless.
82 TAO::ORB_Core_Ref_Counter tmp (rhs);
83 std::swap (this->core_, tmp.core_);
86 TAO_END_VERSIONED_NAMESPACE_DECL