ACE_Dumpable_Adapter< Concrete > Class Template Reference

This class inherits the interface of the abstract ACE_Dumpable class and is instantiated with the implementation of the concrete component class . More...

#include <Dump_T.h>

Inheritance diagram for ACE_Dumpable_Adapter< Concrete >:

Inheritance graph
[legend]
Collaboration diagram for ACE_Dumpable_Adapter< Concrete >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ACE_Dumpable_Adapter (const Concrete *t)
 ~ACE_Dumpable_Adapter (void)
virtual void dump (void) const
Concrete * operator-> () const
 Delegate to methods in the Concrete class.


Private Attributes

const Concrete * this_
 Pointer to of .


Detailed Description

template<class Concrete>
class ACE_Dumpable_Adapter< Concrete >

This class inherits the interface of the abstract ACE_Dumpable class and is instantiated with the implementation of the concrete component class .

This design is similar to the Adapter and Decorator patterns from the ``Gang of Four'' book. Note that need not inherit from a common class since ACE_Dumpable provides the uniform virtual interface!

Definition at line 39 of file Dump_T.h.


Constructor & Destructor Documentation

template<class Concrete>
ACE_Dumpable_Adapter< Concrete >::ACE_Dumpable_Adapter const Concrete *  t  ) 
 

Definition at line 25 of file Dump_T.cpp.

References ACE_TRACE.

00026   : ACE_Dumpable ((const void *) t), this_ (t)
00027 {
00028   ACE_TRACE ("ACE_Dumpable_Adapter<Concrete>::ACE_Dumpable_Adapter");
00029 }

template<class Concrete>
ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_Dumpable_Adapter< Concrete >::~ACE_Dumpable_Adapter void   ) 
 

Definition at line 19 of file Dump_T.cpp.

References ACE_TRACE.

00020 {
00021   ACE_TRACE ("ACE_Dumpable_Adapter<Concrete>::~ACE_Dumpable_Adapter");
00022 }


Member Function Documentation

template<class Concrete>
void ACE_Dumpable_Adapter< Concrete >::dump void   )  const [virtual]
 

Concrete dump method (simply delegates to the method of ).

Implements ACE_Dumpable.

Definition at line 38 of file Dump_T.cpp.

References ACE_TRACE.

00039 {
00040 #if defined (ACE_HAS_DUMP)
00041   ACE_TRACE ("ACE_Dumpable_Adapter<Concrete>::dump");
00042   this->this_->dump ();
00043 #endif /* ACE_HAS_DUMP */
00044 }

template<class Concrete>
Concrete * ACE_Dumpable_Adapter< Concrete >::operator->  )  const
 

Delegate to methods in the Concrete class.

Definition at line 32 of file Dump_T.cpp.

00033 {
00034   return (Concrete *) this->this_;
00035 }


Member Data Documentation

template<class Concrete>
const Concrete* ACE_Dumpable_Adapter< Concrete >::this_ [private]
 

Pointer to of .

Reimplemented from ACE_Dumpable.

Definition at line 55 of file Dump_T.h.


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 11:21:52 2006 for ACE by doxygen 1.3.6