Cluster lib/design_patterns

 

Provides some Design Patterns.

  ->See description

CHAIN_HANDLER

Part of a chain of responsibility.


 
CHAIN_OF_RESPONSIBILITY

The Chain Of Responsibility Design Pattern reified.


 
COMMAND

The "Command" Design Pattern in action.


 
FACTORY

The Abstract Factory Design Pattern.


 
MACRO_COMMAND

A very useful kind of Command: that's a bunch of commands to be executed at once.


 
OBSERVER

The "Observer" Design Pattern.


 
UNDOABLE_COMMAND

Another useful Command, that can be undone.


 
VISITOR

Skeleton implementation of the "Acyclic Visitor" design pattern.


 

->

Description

Provides some Design Patterns. Design Patterns were introduced mainly by the Gang of Four in their great book: Design Patterns -- Elements of Reusable Object-Oriented Software (E. Gamma et al.) We also use the book Design Patterns and Contracts (J.-M. Ézéquiel et al.)

The currently available Design Patterns are:

the Chain itself, and CHAIN_HANDLER that can handle a request from the Chain;