#include <State.hpp>
Public Methods | |
State ( void ) | |
Default Constructor. | |
virtual | ~State ( void ) |
Virtual Destructor. | |
bool | operator== ( StateCref ) const |
Equality operator overload. More... | |
virtual void | handle ( void ) = 0 |
Called by context. | |
Protected Methods | |
State ( StateCref ) throw ( Assertion ) | |
Copy Constructor. More... | |
StateRef | operator= ( StateCref ) throw ( Assertion ) |
Assignment operator overload. More... | |
void | setCurrentState ( ContextPtr, StatePtr ) throw ( NullPointerException ) |
Sets context state change. |
The object will appear to change its class. State is best served as a flyweight and singleton.
|
Copy Constructor.
|
|
Assignment operator overload.
|
|
Equality operator overload.
|