No Description

Micooz 90975a4a70 update readme.md 7 years ago
AbstractFactoryPattern f99e936605 23种设计模式的C++实现 9 years ago
AdapterPattern 281ea0dd79 加入适配器和桥模式的实现 9 years ago
BridgePattern a8460e5133 加入组合模式,装饰模式以及享元模式 9 years ago
BuilderPattern f99e936605 23种设计模式的C++实现 9 years ago
ChainOfResponsibilityPattern f01d16a686 加入访问者模式,责任链模式 9 years ago
CommandPattern e1a33136af 加入命令模式 9 years ago
CompositePattern a8460e5133 加入组合模式,装饰模式以及享元模式 9 years ago
DecoratorPattern a8460e5133 加入组合模式,装饰模式以及享元模式 9 years ago
FacadePattern 6380f3790d 加入门面模式,代理模式,状态模式,策略模式,模板模式 9 years ago
FactoryPattern f99e936605 23种设计模式的C++实现 9 years ago
FlyweightPattern 86a8c93701 加入解释器模式,迭代器模式 9 years ago
InterpreterPattern 86a8c93701 加入解释器模式,迭代器模式 9 years ago
IteratorPattern 86a8c93701 加入解释器模式,迭代器模式 9 years ago
MediatorPattern e1a33136af 加入命令模式 9 years ago
MementoPattern 66ff26ae24 加入备忘录模式 9 years ago
ObserverPattern 1e66d6dc3d 加入观察者模式 9 years ago
PrototypePattern f99e936605 23种设计模式的C++实现 9 years ago
ProxyPattern 6380f3790d 加入门面模式,代理模式,状态模式,策略模式,模板模式 9 years ago
SingletonPattern f99e936605 23种设计模式的C++实现 9 years ago
StatePattern 6380f3790d 加入门面模式,代理模式,状态模式,策略模式,模板模式 9 years ago
StrategyPattern 6380f3790d 加入门面模式,代理模式,状态模式,策略模式,模板模式 9 years ago
TemplatePattern 6380f3790d 加入门面模式,代理模式,状态模式,策略模式,模板模式 9 years ago
VisitorPattern f01d16a686 加入访问者模式,责任链模式 9 years ago
.gitignore 86a8c93701 加入解释器模式,迭代器模式 9 years ago
DesignPattern.sln 86a8c93701 加入解释器模式,迭代器模式 9 years ago
DesignPattern.v12.suo 86a8c93701 加入解释器模式,迭代器模式 9 years ago
LICENSE 8ae96d5ca0 Initial commit 9 years ago
README.md 90975a4a70 update readme.md 7 years ago

README.md

This repo is no longer maintained!

Please go to https://github.com/micooz/DesignPattern for further information.


23种设计模式的C++实现

每个文件夹对应一个设计模式

NOTE:为方便学习,大多数project仅有一个实现文件,class均以inline方式实现

实现参考

设计模式精解-GoF 23种设计模式解析

NOTE:源代码经过简化,移除了一些不必要的构造和析构函数,方便阅读

编译器:Visual Studio 2013(MSVC 12)