#include <Dump_T.h>
Inheritance diagram for ACE_Dumpable_Adapter:


Public Methods | |
| ACE_Dumpable_Adapter (const Concrete *t) | |
| ~ACE_Dumpable_Adapter (void) | |
| virtual void | dump (void) const |
| Concrete dump method (simply delegates to the <dump> method of <class Concrete>). More... | |
| Concrete * | operator-> () const |
| Delegate to methods in the Concrete class. More... | |
Private Attributes | |
| const Concrete * | this_ |
| Pointer to <this> of <class Concrete>. More... | |
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 37 of file Dump_T.h.
|
||||||||||
|
Definition at line 22 of file Dump_T.cpp. References ACE_TRACE.
00023 : ACE_Dumpable ((const void *) t), this_ (t) 00024 { 00025 ACE_TRACE ("ACE_Dumpable_Adapter<Concrete>::ACE_Dumpable_Adapter"); 00026 } |
|
||||||||||
|
Definition at line 16 of file Dump_T.cpp. References ACE_TRACE.
00017 {
00018 ACE_TRACE ("ACE_Dumpable_Adapter<Concrete>::~ACE_Dumpable_Adapter");
00019 }
|
|
||||||||||
|
Concrete dump method (simply delegates to the <dump> method of <class Concrete>).
Implements ACE_Dumpable. Definition at line 35 of file Dump_T.cpp. References ACE_TRACE, and this_.
|
|
|||||||||
|
Delegate to methods in the Concrete class.
Definition at line 29 of file Dump_T.cpp. References this_.
00030 {
00031 return (Concrete *) this->this_;
00032 }
|
|
|||||
|
Pointer to <this> of <class Concrete>.
Reimplemented from ACE_Dumpable. Definition at line 53 of file Dump_T.h. Referenced by dump, and operator->. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002