CoreLinux++  0.4.32
Public Member Functions | Protected Member Functions | List of all members
corelinux::Context Class Reference

Context defines the interface to clients and maintains an instance of a State subclass. More...

#include <Context.hpp>

Public Member Functions

 Context (void)
 Default Constructor.
 
 Context (ContextCref)
 Copy Constructor. More...
 
virtual ~Context (void)
 Virtual Destructor.
 
ContextRef operator= (ContextCref)
 Assignment operator overload. More...
 
bool operator== (ContextCref) const
 Equality operator overload. More...
 
virtual void request (void) throw ( NullPointerException )
 Invoke a context request which is delegated to State.
 
virtual void changeState (StatePtr)
 Change the state of the context.
 

Protected Member Functions

StatePtr getState (void) const
 Retrieve the state instance.
 
void setState (StatePtr)
 Set the state instance.
 

Detailed Description

Context defines the interface to clients and maintains an instance of a State subclass.

Constructor & Destructor Documentation

§ Context()

corelinux::Context::Context ( ContextCref  aContext)

Copy Constructor.

Parameters
Contextconst reference

Member Function Documentation

§ operator=()

ContextRef corelinux::Context::operator= ( ContextCref  aContext)

Assignment operator overload.

Parameters
Contextconst reference
Returns
Context reference to self

References getState(), and setState().

§ operator==()

bool corelinux::Context::operator== ( ContextCref  aContext) const

Equality operator overload.

Parameters
Contextconst 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