Go to file
Qiangguo Feng 525196c2b7
Update README.md
2024-04-17 15:27:17 +08:00
.vs fix memory leak 2020-11-29 15:28:46 +08:00
.vscode bugfix: change character code : utf-8 2021-10-28 23:15:51 +08:00
01.SimpleFactory update CMakeLists.txt 2023-08-08 22:10:55 +08:00
02.FactoryMethod update CMakeLists.txt 2023-08-08 22:10:55 +08:00
03.AbstractFactory update CMakeLists.txt 2023-08-08 22:10:55 +08:00
04.BuilderPattern Add CMakeLists.txt for builder pattern. 2023-08-09 23:04:52 +08:00
05.PrototypePattern Add CMakeLists.txt for prototype pattern. 2023-08-20 09:32:13 +08:00
06.Singleton add singleton.md 2024-04-13 09:29:33 +08:00
07.AdapterPattern add adapter.md 2024-04-13 09:45:01 +08:00
08.BridgePattern add bridgePattern.md 2024-04-13 09:53:35 +08:00
09.CompositePattern add CompositePattern.md 2024-04-13 10:02:14 +08:00
10.DecoratorPattern update some pattern md. 2024-04-13 20:07:23 +08:00
11.FacadePattern update some pattern md. 2024-04-13 20:09:37 +08:00
12.FlyweightPattern update some pattern md. 2024-04-13 20:07:23 +08:00
13.ProxyPattern add some markdown notes. 2024-04-14 10:42:47 +08:00
14.ChainOfResponsibility add some markdown notes. 2024-04-14 10:42:47 +08:00
15.CommandPattern add some markdown notes. 2024-04-14 10:42:47 +08:00
16.InterpreterPattern fix markdown format. 2024-04-14 10:44:16 +08:00
17.IteratorPattern add some pattern markdown. 2024-04-14 11:25:39 +08:00
18.MediatorPattern add some pattern markdown. 2024-04-14 11:25:39 +08:00
19.MementoPattern add some pattern markdown. 2024-04-14 11:25:39 +08:00
20.ObserverPattern add some pattern markdown. 2024-04-14 11:25:39 +08:00
21.StatePattern add some pattern markdown. 2024-04-14 11:25:39 +08:00
22.StrategyPattern add some pattern markdown. 2024-04-14 11:25:39 +08:00
23.TemplateMethodPattern add some pattern markdown. 2024-04-14 11:25:39 +08:00
24.VisitorPattern add visitorPattern.md. 2024-04-14 11:32:16 +08:00
31.PImplPattern feature: add PImpl Pattern demo code. 2022-02-26 16:08:24 +08:00
32.谈谈低耦合原则 feature: add lowering coupling discussions and methods. 2022-02-27 11:50:35 +08:00
.gitignore add .gitignore 2021-08-30 21:59:55 +08:00
CMakeLists.txt Add CMakeLists.txt part 5. Fix compilte error. 2023-08-26 16:44:30 +08:00
README.md Update README.md 2024-04-17 15:27:17 +08:00

README.md

DesignPattern

Jungle设计模式系列

How to compile

Windows

mkdir build
cd build
cmake -G "MinGW Makefiles" ../
make

Linux

mkdir build
cd build
cmake ../
make

感谢

感谢@ichdream, @sterben-01对本项目的贡献也欢迎和支持更多coder提出修改和指正

订正

  • 2021/10/28GB2312 --> UTF-8
  • 2021/09/07merge @ichdream pull request采用智能指针管理堆对象引入makefile管理工程修改文件编码格式
  • 2021/04/04为虚基类添加虚析构函数避免内存泄露
  • 2020/11/29解决内存泄露问题
  • 2023/09/24添加CMake编译工程管理
  • 2024/04/17: update markdown note.

目录

代码资源:https://github.com/FengJungle/DesignPattern

01.设计模式——设计模式概述

02.设计模式——UML类图介绍

03.设计模式(三)——面向对象设计原则

04.设计模式(四)——简单工厂模式

05.设计模式(五)——工厂方法模式

06.设计模式(六)——抽象工厂模式

07.设计模式(七)——建造者模式

08.设计模式(八)——原型模式

09.设计模式(九)——单例模式

10.设计模式(十)——适配器模式

11.设计模式(十一)——桥接模式

12.设计模式(十二)——组合模式

13.设计模式(十三)——装饰模式

14.设计模式(十四)——外观模式

15.设计模式(十五)——享元模式

16.设计模式(十六)——代理模式

17.设计模式(十七)——职责链模式

18.设计模式(十八)——命令模式

19.设计模式(十九)——解释器模式

20.设计模式(二十)——迭代器模式

21.设计模式(二十一)——中介者模式

22.设计模式(二十二)——备忘录模式

23.设计模式(二十三)——观察者模式

24.设计模式(二十四)——状态模式

25.设计模式(二十五)——策略模式

26.设计模式(二十六)——模板方法模式

其他

27.设计模式那么多!面试官会怎么问?

博客地址:https://zhuanlan.zhihu.com/p/415609134

28.划重点面试中单例模式的考点C++版本)

博客地址:https://zhuanlan.zhihu.com/p/692662459

29.new也可以创建对象为什么需要工厂模式

博客地址:https://zhuanlan.zhihu.com/p/611234726

30.Qt中的设计模式

博客地址:https://blog.csdn.net/sinat_21107433/article/details/120936720

31.PImpl模式

博客地址:https://zhuanlan.zhihu.com/p/692661653

32.啊,如何遵循“低耦合”设计原则?

博客地址:https://zhuanlan.zhihu.com/p/473171832