|
CoreLinux++
0.4.32
|
Allow an object to alter its behavior when its internal state changes. More...
#include <State.hpp>
Public Member Functions | |
| 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 Member Functions | |
| 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. | |
Allow an object to alter its behavior when its internal state changes.
The object will appear to change its class. State is best served as a flyweight and singleton.
| bool corelinux::State::operator== | ( | StateCref | aState | ) | const |