从封装变化角度对模式分类
组件协作:
- Template Method
- Strategy
- Observer/Event
单一职责:
- Decorator
- Bridge
对象创建:
- Factory Method
- Abstract Factory
- Prototype
- Builder
对象性能:
- Singleton
- Flyweight
接口隔离:
- Facade
- Proxy
- Mediator
- Adapter
状态变化:
- Memento
- State
数据结构:
- Composite
- Iterator
- Chain of Resposibility
行为变化:
- Command
- Visitor
领域问题:
- Interpreter
ps:以上内容均为学习笔记,学习视频为李建忠老师的c++设计模式,由于视频源链接已经找不到了,所以无法贴上链接,之后所有关于c++设计模式内容均为此学习视频的笔记,特此声明。