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

corelinux::Proxy Template Class Reference

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

#include <Proxy.hpp>

Inheritance diagram for corelinux::Proxy

Inheritance graph
[legend]
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> template class corelinux::Proxy

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


Constructor & Destructor Documentation

template<classSubjectImpl>
corelinux::Proxy<SubjectImpl>::Proxy<SubjectImpl> ( SubjectImpl * aSubject ) throw (Assertion)
 

Constructor with SubjectImpl instance.

Parameters:
SubjectImpl   pointer

template<classSubjectImpl>
corelinux::Proxy<SubjectImpl>::Proxy<SubjectImpl> ( const Proxy<SubjectImpl> & aProxy )
 

Copy constructor.

Parameters:
Proxy   const reference


Member Function Documentation

template<classSubjectImpl>
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<classSubjectImpl>
SubjectImpl & corelinux::Proxy<SubjectImpl>::operator * ( void ) throw ( Assertion ) [inline, virtual]
 

Operator dereference overload.

Returns:
SubjectImpl reference
Exceptions:
Assertion   if theSubject is NULLPTR

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

Operator selector overload.

Returns:
SubjectImpl pointer

template<classSubjectImpl>
Proxy<SubjectImpl> & corelinux::Proxy<SubjectImpl>::operator= ( const Proxy<SubjectImpl> & aProxy ) [inline]
 

Assignment operator.

Parameters:
Proxy   const reference
Returns:
Proxy reference

template<classSubjectImpl>
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