ACE 8.0.1
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
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 <class Concrete>. 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]

Public Member Functions

 ACE_Dumpable_Adapter (const Concrete *t)
 
 ~ACE_Dumpable_Adapter ()
 
virtual void dump () const
 
Concreteoperator-> () const
 Delegate to methods in the Concrete class.
 
- Public Member Functions inherited from ACE_Dumpable
 ACE_Dumpable (const void *)
 Constructor.
 

Private Attributes

const Concretethis_
 Pointer to this of <class Concrete>.
 

Additional Inherited Members

- Protected Member Functions inherited from ACE_Dumpable
virtual ~ACE_Dumpable ()
 

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 <class Concrete>.

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

Constructor & Destructor Documentation

◆ ACE_Dumpable_Adapter()

◆ ~ACE_Dumpable_Adapter()

Member Function Documentation

◆ dump()

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

Concrete dump method (simply delegates to the dump() method of <class Concrete>).

Implements ACE_Dumpable.

◆ operator->()

Delegate to methods in the Concrete class.

Member Data Documentation

◆ this_

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

Pointer to this of <class Concrete>.


The documentation for this class was generated from the following files: