|
CoreLinux++
0.4.32
|
Provide a surrogate or placeholder for another object to control access to it. More...
#include <Proxy.hpp>
Public Member Functions | |
| Proxy (void) | |
| Default constructor. | |
| throw (Assertion) | |
| Constructor with SubjectImpl instance. More... | |
| Proxy (const Proxy &aProxy) | |
| Copy constructor. More... | |
| virtual | ~Proxy (void) |
| Virtual destructor. | |
| Proxy & | operator= (const Proxy &aProxy) |
| Assignment operator. More... | |
| bool | operator== (const Proxy &aProxy) const |
| Equality operator. More... | |
| virtual SubjectImpl * | operator-> (void) |
| Operator selector overload. More... | |
| virtual SubjectImpl & | operator* (void) throw ( Assertion ) |
| Operator dereference overload. More... | |
| virtual const SubjectImpl & | getSubject (void) const throw ( Assertion ) |
| Returns a reference to theSubjec. More... | |
Protected Member Functions | |
| virtual void | setSubject (SubjectImpl *aSubject) |
Protected Attributes | |
| SubjectImpl * | theSubject |
| The subject pointer. | |
Provide a surrogate or placeholder for another object to control access to it.
|
inline |
Copy constructor.
| Proxy | const reference |
|
inlinevirtual | ||||||||||||||
Returns a reference to theSubjec.
| Assertion | if theSubject is NULLPTR |
References corelinux::Proxy< SubjectImpl >::theSubject.
Referenced by corelinux::Proxy< SubjectImpl >::operator=(), and corelinux::Proxy< SubjectImpl >::operator==().
|
inlinevirtual | ||||||||||||||
Operator dereference overload.
| Assertion | if theSubject is NULLPTR |
References corelinux::Proxy< SubjectImpl >::theSubject.
|
inlinevirtual |
Operator selector overload.
References corelinux::Proxy< SubjectImpl >::theSubject.
|
inline |
Assignment operator.
| Proxy | const reference |
References corelinux::Proxy< SubjectImpl >::getSubject(), and corelinux::Proxy< SubjectImpl >::theSubject.
|
inline |
Equality operator.
| Proxy | const reference |
References corelinux::Proxy< SubjectImpl >::getSubject(), and corelinux::Proxy< SubjectImpl >::theSubject.
|
inline |
Constructor with SubjectImpl instance.
| SubjectImpl | pointer |