state_pattern::State

class State

Subclassed by state_pattern::ConcreteStateA, state_pattern::ConcreteStateB

Public Functions

virtual void handle(Context &context) const = 0

Handle the request and optionally change the state.

Parameters:

context – Reference to the context object.