|
CoreLinux++
0.4.32
|
Decorators can attach additional responsibilities to an object dynamically which provide a more flexible alternative to subclassing for extending functionality. More...
#include <Decorator.hpp>
Public Member Functions | |
| Decorator (Implementation aImplementation) | |
| Default Constructor requires a Implementation. More... | |
| Decorator (const Decorator &aDecorator) | |
| Copy Constructor copies theImplementation. More... | |
| virtual | ~Decorator (void) |
| Virtual Destructor. | |
| Decorator & | operator= (const Decorator &aDecorator) throw (Exception) |
| Assignment operator overload. More... | |
| bool | operator== (const Decorator &aDecorator) const |
| Equality operator overload. More... | |
| virtual Implementation | getImplementation (void) const |
| Gets current theImplementation. More... | |
| virtual void | setImplementation (Implementation aImplementation) throw (Exception) |
| Sets current theImplementation to aImplementation. More... | |
Public Member Functions inherited from corelinux::CoreLinuxObject | |
| CoreLinuxObject (void) | |
| Default Constructor. | |
| CoreLinuxObject (CoreLinuxObjectCref) | |
| Copy Constructor. More... | |
| virtual | ~CoreLinuxObject (void) |
| Virtual Destructor. | |
| CoreLinuxObjectRef | operator= (CoreLinuxObjectCref) |
| Assignment operator overload. More... | |
| bool | operator== (CoreLinuxObjectCref) const |
| Equality operator overload. More... | |
| bool | operator!= (CoreLinuxObjectCref) const |
| Non-equality operator overload. More... | |
Protected Member Functions | |
| throw (Assertion) | |
Default Constructor Because a Decorator requires a implementation to work, you can not construct one without it. More... | |
Protected Attributes | |
| Implementation | theImplementation |
| Storage for theImplementation object. | |
Decorators can attach additional responsibilities to an object dynamically which provide a more flexible alternative to subclassing for extending functionality.
|
inline |
Default Constructor requires a Implementation.
| Implementation | instance |
|
inline |
Copy Constructor copies theImplementation.
| Decorator | const reference |
|
inlinevirtual |
Gets current theImplementation.
References corelinux::Decorator< Implementation >::theImplementation.
Referenced by corelinux::Decorator< Implementation >::operator==().
|
inline | ||||||||||||||
Assignment operator overload.
This may throw Exception if there is a problem cloning theImplementation.
| Decorator | const reference |
| Exception | - implementation defined |
References corelinux::Decorator< Implementation >::setImplementation().
|
inline |
Equality operator overload.
| Decorator | const reference |
References corelinux::Decorator< Implementation >::getImplementation().
|
inlinevirtual | ||||||||||||||
Sets current theImplementation to aImplementation.
| Implementation | - implementation instance |
| Exception | - derivation defined |
References corelinux::Decorator< Implementation >::theImplementation.
Referenced by corelinux::Decorator< Implementation >::operator=().
|
inlineprotected |
Default Constructor
Because a Decorator requires a implementation to work, you can not construct one without it.
| void |
| NEVER_GET_HERE |