摘要:
zz from www.cplusplus.com/doc/tutorial/namespaces/ Namespaces Published by Juan SoulieLast update on Feb 2, 2007 at 2:01pm UTC Namespaces allow to group entities like classes, objects and functions u... 阅读全文
摘要:
System(Facade)::initializeSystem set up Controller & Model Controller initilization intilize system env start init_module [] register init module create module state init_state.reset register st... 阅读全文
摘要:
好吧,又见到这个模式了。。在项目中,这个模式被用来构建整个system,作为对外交互的接口,这是facade的擅长的。A facade is an object that provides a simplified interface to a larger body of code, such as a class library. A facade can: make a software library easier to use, understand and test, since the facade has convenient methods for common tasks; 阅读全文
摘要:
这次遇到它不是在项目中,但项目也有的。。今天实际上发现,在项目中23种设计模式的基本用法都作了示例。。原型也都规定好了。。 策略模式是在读ThoughtWork文集里看到的,还提及了Null Object模式,两个都大致说下。 The strategy pattern is intended to provide a means to define a family of algorithms, ... 阅读全文
摘要:
The shared_ptr class template stores a pointer to a dynamically allocated object, typically with a C++ new-expression. The object pointed to is guaranteed to be deleted when the last shared_ptr pointi... 阅读全文
摘要:
实验室这个平台中设计模型数也数不完。。今天遇到了mediator模型。原理: wiki上的C#代码示例:看上去很麻烦,但我们只要从其defination入手:With the mediator pattern communication between objects is encapsulated with a mediator object. Objects no longer communicate directly with each other, but instead communicate through the mediator. This reduces the depend 阅读全文