#include <Dump_T.h>
Inheritance diagram for ACE_Dumpable_Adapter< Concrete >:
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 this of <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!
Definition at line 39 of file Dump_T.h.
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 }
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 }
void ACE_Dumpable_Adapter< Concrete >::dump | ( | void | ) | const [virtual] |
Concrete dump method (simply delegates to the <dump> method of <class concrete>="">).
Implements ACE_Dumpable.
Definition at line 38 of file Dump_T.cpp.
References ACE_TRACE, and ACE_Dumpable_Adapter< Concrete >::this_.
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 }
Concrete * ACE_Dumpable_Adapter< Concrete >::operator-> | ( | ) | const |
Delegate to methods in the Concrete class.
Definition at line 32 of file Dump_T.cpp.
References ACE_Dumpable_Adapter< Concrete >::this_.
00033 { 00034 return (Concrete *) this->this_; 00035 }
const Concrete* ACE_Dumpable_Adapter< Concrete >::this_ [private] |
Pointer to this
of <class concrete>="">.
Reimplemented from ACE_Dumpable.
Definition at line 55 of file Dump_T.h.
Referenced by ACE_Dumpable_Adapter< Concrete >::dump(), and ACE_Dumpable_Adapter< Concrete >::operator->().