设计模式
文章平均质量分 81
GeoAnt
这个作者很懒,什么都没留下…
展开
-
设计模式个人备忘(享元模式,strategy, templete strategy)
设计模式C++实现(9)——享元模式常见设计模式的解析和实现(C++)之十六-Strategy模式http://sourcemaking.com/design_patterns/strategy/cpp/1http://www.vincehuston.org/dp/strategy.htmltemplateclass Stat {public: void原创 2014-10-26 11:18:39 · 738 阅读 · 0 评论 -
面向接口编程
Abstract Class vs Interface in C++ [duplicate]转载 2014-10-26 12:58:35 · 488 阅读 · 0 评论 -
Policy-based design设计模式
书在4年前看过,今天重温一下:一直认为这是最好的设计模式,大牛Andrei Alexandrescu 专门写了书,可见他的重要性http://en.wikipedia.org/wiki/Policy-based_designtemplate <class T>class Talkative { T const & t;public: Talkative(T const & obj) : t(obj) { } void talk() const { t.talk(); }};原创 2014-10-26 11:33:15 · 1659 阅读 · 0 评论