CoreLinux++  0.4.32
Public Member Functions | Protected Member Functions | List of all members
corelinux::Mediator Class Referenceabstract

Mediator declares an interface for communicating with Colleague objects. More...

#include <Mediator.hpp>

Public Member Functions

 Mediator (void)
 Default constructor.
 
 Mediator (MediatorCref)
 Copy constructor.
 
virtual ~Mediator (void)
 Virtual destructor.
 
MediatorRef operator= (MediatorCref)
 Assignment operator.
 
bool operator== (MediatorCref) const
 Equality operator.
 
virtual void action (Event< Identifier > *) throw ( NullPointerException )
 

Protected Member Functions

virtual void colleagueCreated (ColleaguePtr)=0
 colleagueCreated requires a implementation for derivations that need to gather information from the Colleague to distribute action events More...
 
virtual Iterator< ColleaguePtr > * createIterator (Event< Identifier > *)=0
 When action is called on the Mediator, it will ask the implementation for the Colleagues that are interested in the event identified by the identifier. More...
 
virtual void destroyIterator (Iterator< ColleaguePtr > *)=0
 Called when action is through with the colleague iteration. More...
 

Detailed Description

Mediator declares an interface for communicating with Colleague objects.

Member Function Documentation

§ colleagueCreated()

virtual void corelinux::Mediator::colleagueCreated ( ColleaguePtr  )
protectedpure virtual

colleagueCreated requires a implementation for derivations that need to gather information from the Colleague to distribute action events

Parameters
Colleaguepointer

§ createIterator()

virtual Iterator<ColleaguePtr>* corelinux::Mediator::createIterator ( Event< Identifier > *  )
protectedpure virtual

When action is called on the Mediator, it will ask the implementation for the Colleagues that are interested in the event identified by the identifier.

Parameters
IdentifierCrefkey to interested parties
Returns
Iterator over Colleague pointer

Referenced by operator==().

§ destroyIterator()

virtual void corelinux::Mediator::destroyIterator ( Iterator< ColleaguePtr > *  )
protectedpure virtual

Called when action is through with the colleague iteration.

Parameters
Iteratorover Colleague pointer

Referenced by operator==().


The documentation for this class was generated from the following files:

This is the CoreLinux++ reference manual
Provided by The CoreLinux Consortium