Sin descripción

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

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)