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

corelinux::TransparentComponent Template Class Reference

A TransparentComponent is a templated Component whereas it declares the interface for the objects in a composition, implements default behavior and declares the interface for child operations. More...

#include <TransparentComponent.hpp>

Inheritance diagram for corelinux::TransparentComponent

Inheritance graph
[legend]
Collaboration diagram for corelinux::TransparentComponent:

Collaboration graph
[legend]
List of all members.

Public Methods

 TransparentComponent ( void )
 Default Constructor.

 TransparentComponent ( const TransparentComponent & aRef )
 Copy Constructor. More...

virtual ~TransparentComponent ( void )
 Virtual Destructor.

TransparentComponent& operator= ( const TransparentComponent & )
 Assignment operator overload. More...

bool operator== ( const TransparentComponent & aRef ) const
 Equality operator overload. More...

bool operator!= ( const TransparentComponent & aRef ) const
 Non-equality operator overload. More...

virtual void addComponent ( CompImpl ) throw (InvalidCompositeException)
 Interface for adding component children to a composition. More...

virtual void removeComponent ( CompImpl ) throw (InvalidCompositeException)
 Interface for removing component children from a composition. More...

virtual Iterator<CompImpl>* createIterator ( void ) throw (InvalidCompositeException)
 Interface for creating an Iterator to iterate through the children of a composition. More...

virtual void destroyIterator ( Iterator<CompImpl> * ) throw (InvalidCompositeException)
 Interface for returning a created Iterator. More...


Detailed Description

template<class CompImpl> template class corelinux::TransparentComponent

A TransparentComponent is a templated Component whereas it declares the interface for the objects in a composition, implements default behavior and declares the interface for child operations.


Constructor & Destructor Documentation

template<classCompImpl>
corelinux::TransparentComponent<CompImpl>::TransparentComponent<CompImpl> ( const TransparentComponent<CompImpl> & aRef )
 

Copy Constructor.

Parameters:
TransparentComponent   const reference


Member Function Documentation

template<classCompImpl>
void corelinux::TransparentComponent<CompImpl>::addComponent ( CompImpl ) throw (InvalidCompositeException) [inline, virtual]
 

Interface for adding component children to a composition.

The default implementation throws an exception to insure needless calls are not made to leafs components

Parameters:
CompImpl   - Component instantiated with implementation
Exceptions:
InvalidCompositeInstance  

template<classCompImpl>
Iterator< CompImpl >* corelinux::TransparentComponent<CompImpl>::createIterator ( void ) throw (InvalidCompositeException) [inline, virtual]
 

Interface for creating an Iterator to iterate through the children of a composition.

The default implementation throws an exception to insure needless calls are not made to leafs

Parameters:
CompImpl   - Component instantiated with implementation
Exceptions:
InvalidCompositeInstance  

Reimplemented in EquipmentComposite.

template<classCompImpl>
void corelinux::TransparentComponent<CompImpl>::destroyIterator ( Iterator< CompImpl >* ) throw (InvalidCompositeException) [inline, virtual]
 

Interface for returning a created Iterator.

It is up to the Composite implementation to provide accounting of Iterator instances that have been given out. The default implementation throws an exception to insure needless calls are not made to leafs

Parameters:
CompImpl   - Component instantiated with implementation
Exceptions:
InvalidCompositeInstance  

template<classCompImpl>
bool corelinux::TransparentComponent<CompImpl>::operator!= ( const TransparentComponent<CompImpl> & aRef ) const [inline]
 

Non-equality operator overload.

Parameters:
TransparentComponent   const reference
Returns:
false if equal, true otherwise

template<classCompImpl>
TransparentComponent<CompImpl> & corelinux::TransparentComponent<CompImpl>::operator= ( const TransparentComponent<CompImpl> & ) [inline]
 

Assignment operator overload.

Parameters:
TransparentComponent   const reference
Returns:
TransparentComponent reference to self

template<classCompImpl>
bool corelinux::TransparentComponent<CompImpl>::operator== ( const TransparentComponent<CompImpl> & aRef ) const [inline]
 

Equality operator overload.

Parameters:
TransparentComponent   const reference
Returns:
true if equal, false otherwise

template<classCompImpl>
void corelinux::TransparentComponent<CompImpl>::removeComponent ( CompImpl ) throw (InvalidCompositeException) [inline, virtual]
 

Interface for removing component children from a composition.

The default implementation throws an exception to insure needless calls are not made to leafs

Parameters:
CompImpl   - Component instantiated with implementation
Exceptions:
InvalidCompositeInstance  


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