Design Patterns

From AdaCommons

Jump to: navigation, search

A list of various design patterns and their Ada implementations.

Contents

Iterator

The best example of Iterator pattern can be found from Ada.Containers. See RM A.18.2 (Ada.Containers.Vectors) for details.

Command

Ahven library uses Command pattern to hold various test routines in a list.

Observer

Matthew Heaney's Observer example at AdaPower.

Thread pool

AWS starts a fixed amount of workers in its AWS.Server package.

Visitor

Matthew Heaney's Visitor example at Adapower.

Singleton

See this comp.lang.ada discussion

Personal tools