Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACE_Dumpable_Ptr Class Reference

A smart pointer stored in the in-memory object database ACE_ODB. The pointee (if any) is deleted when reassigned. More...

#include <Dump.h>

Collaboration diagram for ACE_Dumpable_Ptr:

Collaboration graph
[legend]
List of all members.

Public Methods

 ACE_Dumpable_Ptr (const ACE_Dumpable *dumper=0)
const ACE_Dumpableoperator-> () const
void operator= (const ACE_Dumpable *dumper) const

Private Attributes

const ACE_Dumpabledumper_
 "Real" pointer to the underlying abstract base class pointer that does the real work. More...


Detailed Description

A smart pointer stored in the in-memory object database ACE_ODB. The pointee (if any) is deleted when reassigned.

Definition at line 93 of file Dump.h.


Constructor & Destructor Documentation

ACE_Dumpable_Ptr::ACE_Dumpable_Ptr const ACE_Dumpable   dumper = 0
 

Definition at line 24 of file Dump.cpp.

References ACE_TRACE.

00025   : dumper_ (dumper)
00026 {
00027   ACE_TRACE ("ACE_Dumpable_Ptr::ACE_Dumpable_Ptr");
00028 }


Member Function Documentation

const ACE_Dumpable * ACE_Dumpable_Ptr::operator->   const
 

Definition at line 31 of file Dump.cpp.

References ACE_TRACE, and dumper_.

00032 {
00033   ACE_TRACE ("ACE_Dumpable_Ptr::operator->");
00034   return this->dumper_;
00035 }

void ACE_Dumpable_Ptr::operator= const ACE_Dumpable   dumper const
 

Definition at line 38 of file Dump.cpp.

References ACE_TRACE, and dumper_.

00039 {
00040   ACE_TRACE ("ACE_Dumpable_Ptr::operator=");
00041   if (this->dumper_ != dumper)
00042     {
00043       delete (ACE_Dumpable *) this->dumper_;
00044       ((ACE_Dumpable_Ptr *) this)->dumper_ = dumper;
00045     }
00046 }


Member Data Documentation

const ACE_Dumpable* ACE_Dumpable_Ptr::dumper_ [private]
 

"Real" pointer to the underlying abstract base class pointer that does the real work.

Definition at line 103 of file Dump.h.

Referenced by operator->, and operator=.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 12:47:31 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002