1 #if !defined (__BRIDGE_HPP) 24 #if !defined(__COMMON_HPP) 43 template <
class Implementation>
53 Bridge( Implementation aImplementation )
56 theImplementation(aImplementation)
94 return (
this == &aRef);
105 return !(*
this == aRef);
145 return theImplementation;
183 Implementation theImplementation;
190 #endif // if !defined(__BRIDGE_HPP) Bridge(Implementation aImplementation)
Default Constructor requires a Implementation.
Definition: Bridge.hpp:53
void setImplementation(Implementation aImpl)
Set theImplementation.
Definition: Bridge.hpp:160
Bridge & operator=(const Bridge &aRef)
Assignment operator overload.
Definition: Bridge.hpp:80
virtual Implementation cloneImplementation(Implementation)=0
Pure virtual method to have the derivation contain theImplementation.by ownership.
virtual ~Bridge(void)
Virtual Destructor.
Definition: Bridge.hpp:64
When an abstraction can have one of several possible implementations, the usual way to accommodate th...
Definition: Bridge.hpp:44
Implementation getImplementation(void) const
Gets current theImplementation.
Definition: Bridge.hpp:143
Forward reference the various common classes.
Definition: AbstractAllocator.hpp:32
bool operator!=(const Bridge &) const
Non-equality operator overload.
Definition: Bridge.hpp:103
Bridge(const Bridge &)
Copy Constructor Because theImplementation is owned by the Bridge, only the assignment operator insur...
Definition: Bridge.hpp:131
Exception is the base exception class used in the CoreLinux++ libraries.
Definition: Exception.hpp:51
Bridge(void)
Default Constructor Because a Bridge requires a implementation to work, you can not construct one wit...
Definition: Bridge.hpp:117
Assertion is-a Exception created when an assertion fails.
Definition: Assertion.hpp:423
An CoreLinuxObject is a base class for the library.
Definition: CoreLinuxObject.hpp:39
bool operator==(const Bridge &) const
Equality operator overload.
Definition: Bridge.hpp:92