Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class 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:

corelinux::CoreLinuxObject corelinux::TransparentComponent< CompImpl > corelinux::TransparentComponent< EquipmentPtr > Equipment EquipmentComposite List of all members.

Public Member Functions

 Component (void)
 Default Constructor.

 Component (ComponentCref)
 Copy Constructor.

virtual ~Component (void)
 Virtual Destructor.

ComponentRef operator= (ComponentCref)
 Assignment operator overload.

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

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

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.


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   )  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   )  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

bool corelinux::Component::operator== ComponentCref   )  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