Aucune description

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

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)