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

corelinux::Component Class Reference

A Component declares the interface for the objects in a composition and implements default behavior. More...

#include <Component.hpp>

Inheritance diagram for corelinux::Component

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

Collaboration graph
[legend]
List of all members.

Public Methods

 Component ( void )
 Default Constructor.

 Component ( ComponentCref )
 Copy Constructor. More...

virtual ~Component ( void )
 Virtual Destructor.

ComponentRef operator= ( ComponentCref )
 Assignment operator overload. More...

bool operator== ( ComponentCref ) const
 Equality operator overload. More...

bool operator!= ( ComponentCref ) const
 Non-equality operator overload. More...

virtual void accept ( VisitorPtr ) throw ( NullPointerException )
 Accept is a double dispatch method which allows components to have new operations defined without changing the structure of the components themselves. More...


Detailed Description

A Component declares the interface for the objects in a composition and implements default behavior.

This is a safe component by which the composite implementation fully declares leaf management methods.

See also:
TransparentComponent


Constructor & Destructor Documentation

corelinux::Component::Component ( ComponentCref )
 

Copy Constructor.

Parameters:
Component   const reference


Member Function Documentation

void corelinux::Component::accept ( VisitorPtr aVisitor ) throw ( NullPointerException ) [virtual]
 

Accept is a double dispatch method which allows components to have new operations defined without changing the structure of the components themselves.

Parameters:
Visitor   pointer to visitor
Exceptions:
NullPointerException   if pointer is null

bool corelinux::Component::operator!= ( ComponentCref aRef ) const
 

Non-equality operator overload.

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

ComponentRef corelinux::Component::operator= ( ComponentCref )
 

Assignment operator overload.

Parameters:
Component   const reference
Returns:
Component reference to self

Reimplemented from corelinux::CoreLinuxObject.

bool corelinux::Component::operator== ( ComponentCref aRef ) const
 

Equality operator overload.

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


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