Skip to content

drt-pl/DesignPatterns

Repository files navigation

Design Patterns

All original design patterns plus extra two:

  • Object Pool
  • Null Object

Simple and understandable code, for those who prefer learning through examples.

There is before & after comparison for some patterns.

Written in plain C++11 without advanced features, so you will understand code, even if C++ is not your language.

Be sure to check PROGRAM_OUTPUT.txt (no need to build project) to gain more insights.

Creational Patterns

  • Abstract Factory
  • Builder
  • Factory Method
  • Object Pool
  • Prototype
  • Singleton

Structural Patterns

  • Adapter
  • Bridge
  • Composite
  • Decorator
  • Facade
  • Flyweight
  • Proxy

Behavioral Patterns

  • Chain of Responsibility
  • Command
  • Interpreter
  • Iterator
  • Mediator
  • Memento
  • Null Object
  • Observer
  • State
  • Strategy
  • Template Method
  • Visitor

License

MIT-0 (No Attribution)