# Design-mode **Repository Path**: jobo98/Design-mode ## Basic Information - **Project Name**: Design-mode - **Description**: 设计模式的模型 在在博客: https://my.oschina.net/u/3408572/blog/4540495 https://blog.csdn.net/qq_22418329/article/details/108297418 - **Primary Language**: C++ - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-01 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Design-mode #### 介绍 设计模式的模型 在在博客: https://my.oschina.net/u/3408572/blog/4540495 https://blog.csdn.net/qq_22418329/article/details/108297418 GOF-23 模式分类 1. 从目的来看: - 创建型(Creational)模式:将对象的部分创建工作延迟到子类或者其他对象,从而应对需求变化为对象创建时具体类型实现引来的冲击。 - 结构型(Structural)模式:通过类继承或对象组合获得更灵活的结构,从而应对需求变化为对象的结构带来的冲击。 - 行为型(Behavioral)模式:通过类继承或者对象组合来划分类与对象间的职责,从而应对需求变化为多个交互的对象带来的冲击 2. 从范围来看: - 类模式处理类与子类的静态关系 - 对象模式处理对象间动态关系 #### 软件架构 软件架构说明 主要描述23种设计模式: 1. 这里是列表文本组件协作: - Template Method :fa-check: - Strategy :fa-check: - Observer / Event 2. 单一职责: - Decorator - Bridge 3. 对象创建 - Factory Method - Abstract Factory - Prototype - Builder 4. 对象性能 - Singleton - Flyweight 5. 接口隔离 - Facade - Proxy - Mediator - Adapter 6. 状态变化 - Memento - State 7. 数据结构 - Composite - Iterator - Chain of Resposibility 8. 行为变化 - Command - Visitor 9. 领域问题 - Interpreter #### 安装教程 1. 下载克隆: `git clone https://gitee.com/jobo98/Design-mode.git` 2. 编译: `make` 3. 运行相应的模式示例: `cd ;./a.out` #### 使用说明 1. 23种设计模式的示例代码 2. 说明在博客,会在wike里面说明 #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 码云特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)