最近复习了经典的Gof设计模式,期间结合了一个“刻录软件”的开发。
希望大家也能从中学到一点知识。
文章中的不足之处、错误,敬请提出,希望得到您的批评。
代码
https://github.com/everettjf/designpatterns
可以使用codeblock直接打开workspace文件。
文章链接
1. Factory
http://www.cppblog.com/everett/archive/2012/08/31/188851.html
2. Builder
http://www.cppblog.com/everett/archive/2012/08/31/188854.html
3. Facade
http://www.cppblog.com/everett/archive/2012/09/02/189147.html
4. Observer
http://www.cppblog.com/everett/archive/2012/09/02/189149.html
5. Singleton
http://www.cppblog.com/everett/archive/2012/09/20/191304.html
6. Composite
http://www.cppblog.com/everett/archive/2012/09/20/191307.html
7. Prototype
http://www.cppblog.com/everett/archive/2012/09/20/191308.html
8. Adapter
http://www.cppblog.com/everett/archive/2012/09/20/191311.html
9. Bridge
http://www.cppblog.com/everett/archive/2012/09/24/191752.html
10. Chain Of Responsibility
http://www.cppblog.com/everett/archive/2012/09/27/192150.html
11. Visitor
http://www.cppblog.com/everett/archive/2012/09/29/192334.html
12. Decorator
http://www.cppblog.com/everett/archive/2012/09/29/192338.html
13. Iterator
http://www.cppblog.com/everett/archive/2012/09/29/192339.html
14. Proxy
http://www.cppblog.com/everett/archive/2012/10/06/192926.html
15. Flyweight
http://www.cppblog.com/everett/archive/2012/10/06/192927.html
16. Command
http://www.cppblog.com/everett/archive/2012/10/09/193082.html
17. Interpreter
http://www.cppblog.com/everett/archive/2012/10/10/193083.html
18. Mediator
http://www.cppblog.com/everett/archive/2012/10/10/193084.html
19. State
http://www.cppblog.com/everett/archive/2012/10/10/193086.html
20. Memento
http://www.cppblog.com/everett/archive/2012/10/10/193085.html
21. Strategy
http://www.cppblog.com/everett/archive/2012/10/10/193087.html
22. Template Method
http://www.cppblog.com/everett/archive/2012/10/10/193088.html
参考资料
http://en.wikipedia.org/wiki/Design_Patterns