Public Member Functions | Private Attributes

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_

Detailed Description

Definition at line 158 of file ORB_Table.h.


Constructor & Destructor Documentation

TAO::ORB_Core_Ref_Counter::ORB_Core_Ref_Counter ( void   ) 

Constructor.

Definition at line 45 of file ORB_Table.inl.

  : core_ (0)
{
}

TAO::ORB_Core_Ref_Counter::ORB_Core_Ref_Counter ( ::TAO_ORB_Core core  ) 

Constructor.

Definition at line 51 of file ORB_Table.inl.

  : core_ (core)
{
//   ACE_ASSERT (core != 0);

  // Note that the TAO_ORB_Core pointer should always be valid in this
  // constructor.

  // Claim ownership.
  (void) this->core_->_incr_refcnt ();
}

TAO::ORB_Core_Ref_Counter::~ORB_Core_Ref_Counter ( void   ) 

Destructor.

Definition at line 64 of file ORB_Table.inl.

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

TAO::ORB_Core_Ref_Counter::ORB_Core_Ref_Counter ( TAO::ORB_Core_Ref_Counter const &  rhs  ) 

Copy constructor.

Definition at line 71 of file ORB_Table.inl.

  : core_ (rhs.core_)
{
  // Claim ownership.
  if (this->core_)
    (void) this->core_->_incr_refcnt ();
}


Member Function Documentation

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

ORB_Core pointer accessor.

Definition at line 178 of file ORB_Table.h.

{ return this->core_; }

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

Assignment operator.

Definition at line 81 of file ORB_Table.inl.

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


Member Data Documentation

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

Definition at line 181 of file ORB_Table.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines