TAO::ORB_Core_Ref_Counter Class Reference

#include <ORB_Table.h>

Collaboration diagram for TAO::ORB_Core_Ref_Counter:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ORB_Core_Ref_Counter (void)
 Constructor.

 ORB_Core_Ref_Counter (::TAO_ORB_Core *core)
 Constructor.

 ~ORB_Core_Ref_Counter (void)
 Destructor.

 ORB_Core_Ref_Counter (ORB_Core_Ref_Counter const &rhs)
 Copy constructor.

void operator= (ORB_Core_Ref_Counter const &rhs)
 Assignment operator.

::TAO_ORB_Corecore (void) const
 ORB_Core pointer accessor.


Private Attributes

::TAO_ORB_Corecore_

Constructor & Destructor Documentation

ACE_INLINE TAO::ORB_Core_Ref_Counter::ORB_Core_Ref_Counter void   ) 
 

Constructor.

Definition at line 46 of file ORB_Table.inl.

00047   : core_ (0)
00048 {
00049 }

ACE_INLINE TAO::ORB_Core_Ref_Counter::ORB_Core_Ref_Counter ::TAO_ORB_Core core  ) 
 

Constructor.

Definition at line 52 of file ORB_Table.inl.

References TAO_ORB_Core::_incr_refcnt(), and core_.

00053   : core_ (core)
00054 {
00055 //   ACE_ASSERT (core != 0);
00056 
00057   // Note that the TAO_ORB_Core pointer should always be valid in this
00058   // constructor.
00059 
00060   // Claim ownership.
00061   (void) this->core_->_incr_refcnt ();
00062 }

ACE_INLINE TAO::ORB_Core_Ref_Counter::~ORB_Core_Ref_Counter void   ) 
 

Destructor.

Definition at line 65 of file ORB_Table.inl.

References TAO_ORB_Core::_decr_refcnt(), and core_.

00066 {
00067   if (this->core_)
00068     (void) this->core_->_decr_refcnt (); // Should never throw.
00069 }

ACE_INLINE TAO::ORB_Core_Ref_Counter::ORB_Core_Ref_Counter ORB_Core_Ref_Counter const &  rhs  ) 
 

Copy constructor.

Definition at line 72 of file ORB_Table.inl.

References TAO_ORB_Core::_incr_refcnt(), and core_.

00074   : core_ (rhs.core_)
00075 {
00076   // Claim ownership.
00077   if (this->core_)
00078     (void) this->core_->_incr_refcnt ();
00079 }


Member Function Documentation

::TAO_ORB_Core* TAO::ORB_Core_Ref_Counter::core void   )  const [inline]
 

ORB_Core pointer accessor.

Definition at line 188 of file ORB_Table.h.

References core_.

Referenced by TAO::ORB_Table::unbind().

00188 { return this->core_; }

ACE_INLINE void TAO::ORB_Core_Ref_Counter::operator= ORB_Core_Ref_Counter const &  rhs  ) 
 

Assignment operator.

Definition at line 82 of file ORB_Table.inl.

References core_.

00083 {
00084   // Strongly exception safe.  May not be strictly necessary, but
00085   // let's do things the right way, regardless.
00086   TAO::ORB_Core_Ref_Counter tmp (rhs);
00087   std::swap (this->core_, tmp.core_);
00088 }


Member Data Documentation

::TAO_ORB_Core* TAO::ORB_Core_Ref_Counter::core_ [private]
 

Definition at line 192 of file ORB_Table.h.

Referenced by core(), operator=(), ORB_Core_Ref_Counter(), and ~ORB_Core_Ref_Counter().


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 12:26:40 2006 for TAO by doxygen 1.3.6