Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Examples  

corelinux::Proxy Class Template Reference

Provide a surrogate or placeholder for another object to control access to it. More...

#include <Proxy.hpp>

List of all members.

Public Methods

 Proxy (void)
 Default constructor.

 Proxy (SubjectImpl *aSubject) 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 Methods

virtual void setSubject (SubjectImpl *aSubject)

Protected Attributes

SubjectImpl * theSubject
 The subject pointer.


Detailed Description

template<class SubjectImpl>
class corelinux::Proxy< SubjectImpl >

Provide a surrogate or placeholder for another object to control access to it.


Constructor & Destructor Documentation

template<class SubjectImpl>
corelinux::Proxy< SubjectImpl >::Proxy SubjectImpl *    aSubject throw (Assertion) [inline]
 

Constructor with SubjectImpl instance.

Parameters:
SubjectImpl  pointer

template<class SubjectImpl>
corelinux::Proxy< SubjectImpl >::Proxy const Proxy< SubjectImpl > &    aProxy [inline]
 

Copy constructor.

Parameters:
Proxy  const reference


Member Function Documentation

template<class SubjectImpl>
virtual const SubjectImpl& corelinux::Proxy< SubjectImpl >::getSubject void    const throw ( Assertion ) [inline, virtual]
 

Returns a reference to theSubjec.

Returns:
SubjectImpl const reference
Exceptions:
Assertion  if theSubject is NULLPTR

template<class SubjectImpl>
virtual SubjectImpl& corelinux::Proxy< SubjectImpl >::operator * void    throw ( Assertion ) [inline, virtual]
 

Operator dereference overload.

Returns:
SubjectImpl reference
Exceptions:
Assertion  if theSubject is NULLPTR

template<class SubjectImpl>
virtual SubjectImpl* corelinux::Proxy< SubjectImpl >::operator-> void    [inline, virtual]
 

Operator selector overload.

Returns:
SubjectImpl pointer

template<class SubjectImpl>
Proxy& corelinux::Proxy< SubjectImpl >::operator= const Proxy< SubjectImpl > &    aProxy [inline]
 

Assignment operator.

Parameters:
Proxy  const reference
Returns:
Proxy reference

template<class SubjectImpl>
bool corelinux::Proxy< SubjectImpl >::operator== const Proxy< SubjectImpl > &    aProxy const [inline]
 

Equality operator.

Parameters:
Proxy  const reference
Returns:
bool if same


The documentation for this class was generated from the following file:
This is the CoreLinux++ reference manual
Provided by The CoreLinux Consortium