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 52 of file ORB_Table.inl.

00053   : core_ (0)
00054 {
00055 }

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

Constructor.

Definition at line 58 of file ORB_Table.inl.

References TAO_ORB_Core::_incr_refcnt(), and core_.

00059   : core_ (core)
00060 {
00061 //   ACE_ASSERT (core != 0);
00062 
00063   // Note that the TAO_ORB_Core pointer should always be valid in this
00064   // constructor.
00065 
00066   // Claim ownership.
00067   (void) this->core_->_incr_refcnt ();
00068 }

ACE_INLINE TAO::ORB_Core_Ref_Counter::~ORB_Core_Ref_Counter void   ) 
 

Destructor.

Definition at line 71 of file ORB_Table.inl.

References TAO_ORB_Core::_decr_refcnt(), and core_.

00072 {
00073   if (this->core_)
00074     (void) this->core_->_decr_refcnt (); // Should never throw.
00075 }

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

Copy constructor.

Definition at line 78 of file ORB_Table.inl.

References TAO_ORB_Core::_incr_refcnt(), and core_.

00080   : core_ (rhs.core_)
00081 {
00082   // Claim ownership.
00083   if (this->core_)
00084     (void) this->core_->_incr_refcnt ();
00085 }


Member Function Documentation

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

ORB_Core pointer accessor.

Definition at line 190 of file ORB_Table.h.

References core_.

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

00190 { return this->core_; }

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

Assignment operator.

Definition at line 88 of file ORB_Table.inl.

References core_.

00089 {
00090   // Strongly exception safe.  May not be strictly necessary, but
00091   // let's do things the right way, regardless.
00092   TAO::ORB_Core_Ref_Counter tmp (rhs);
00093   std::swap (this->core_, tmp.core_);
00094 }


Member Data Documentation

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

Definition at line 194 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 Sun Jan 27 13:18:25 2008 for TAO by doxygen 1.3.6