资源说明:为什么别人能当项目经理,那是因为他们懂得设计,怎样才能懂得设计,就看看这本设计模式吧,也许能帮你找到答案,下面是目录:
0 引言.............................................................................................................................................2
0.1设计模式解析(总序).....................................................................................................2
0.2设计模式解析后记.............................................................................................................2
0.3 与作者联系........................................................................................................................5
1 创建型模式..................................................................................................................................5
1.1 Factory模式........................................................................................................................5
1.2 AbstactFactory模式..........................................................................................................11
1.3 Singleton模式...................................................................................................................19
1.4 Builder模式.......................................................................................................................22
1.5 Prototype模式...................................................................................................................29
2 结构型模式................................................................................................................................33
2.1 Bridge模式........................................................................................................................33
2.2 Adapter模式......................................................................................................................39
2.3 Decorator模式...................................................................................................................47
2.4 Composite模式.................................................................................................................52
2.5 Flyweight模式..................................................................................................................58
2.6 Facade模式.......................................................................................................................64
2.7 Proxy模式.........................................................................................................................70
3 行为模式....................................................................................................................................74
3.1 Template模式....................................................................................................................74
3.2 Strategy模式.....................................................................................................................80
3.3 State模式...........................................................................................................................87
3.4 Observer模式....................................................................................................................94
3.5 Memento模式.................................................................................................................103
3.6 Mediator模式..................................................................................................................108
3.7 Command模式................................................................................................................117
3.8 Visitor模式......................................................................................................................126
3.9 Chain of Responsibility模式...........................................................................................136
3.10 Iterator模式...................................................................................................................141
3.11 Interpreter模式..............................................................................................................148
4在开发中体验设计模式............................................................................................................153
4.1在开发中体验设计模式.................................................................................................153
4.2深入理解State模式附C++实现源码..............................................................................155
4.3也谈double dispatch(双分派)::Visitor 模式..................................................................162
4.4为什么使用设计模式——从Singleton模式谈起..........................................................164
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。