flyweightfactory.h

来自「设计模式全部演示代码,都可以编译通过,通过这些例子,在研究c++下的设计模式,特」· C头文件 代码 · 共 21 行

H
21
字号
//FlyweightFactory.h
#ifndef _FLYWEIGHTFACTORY_H_ 
#define _FLYWEIGHTFACTORY_H_

#include "Flyweight.h" 
#include <string> 
#include <vector> 
using namespace std;

class FlyweightFactory 
{ 
public: 
	FlyweightFactory();
	~FlyweightFactory();
	Flyweight* GetFlyweight(const string& key);
protected:
private: 
	vector<Flyweight*> _fly;
}; 

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?