暫無描述

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

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)