原文:OGRE中用到的设计模式

 

1.       单例模式(Singleton)
【转载】OGRE中用到的设计模式 

2.       工厂方法(Factory Method)
【转载】OGRE中用到的设计模式 
【转载】OGRE中用到的设计模式 

3.       适配器模式(Adapter)
【转载】OGRE中用到的设计模式 
【转载】OGRE中用到的设计模式 

4.       桥接模式(Bridge)
【转载】OGRE中用到的设计模式 
【转载】OGRE中用到的设计模式 

5.       职责链模式(Chain of Responsibility)
【转载】OGRE中用到的设计模式 
【转载】OGRE中用到的设计模式 

6.       迭代器模式(Iterator)

Ogre::VectorIterator< T >

Ogre::MapIterator< T >

Ogre::ConstVectorIterator< T >

Ogre::ConstMapIterator< T >

7.       观察者模式(Observer)

如各种Listener
【转载】OGRE中用到的设计模式 

8.       模板方法模式(TemplateMethod)

基类定义全局和步骤,子类来实现每一步的细节
【转载】OGRE中用到的设计模式 

还有Visitor, Façade, Strategy等等

 

相关文章:

  • 2021-04-26
  • 2021-10-02
  • 2021-09-05
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-05
  • 2022-12-23
  • 2021-05-22
  • 2021-10-31
  • 2022-02-10
相关资源
相似解决方案