📄 objectregistry.h.svn-base
字号:
#ifndef VENICE_OBJECTREGISTRY_H
#define VENICE_OBJECTREGISTRY_H
#include "Platform/Define.h"
#include "Utilities/HashMap.h"
#include "Policies/Singleton.h"
#include <string>
#include <map>
/** ObjectRegistry holds all registry item of the same type
*/
template<class T, class Key = std::string>
class VENICE_DLL_DECL ObjectRegistry
{
typedef std::map<Key, T *> RegistryMapType;
RegistryMapType i_registeredObjects;
friend class VENICE::OperatorNew<ObjectRegistry<T, Key> >;
// protected for friend use since it should be a singleton
ObjectRegistry() {}
~ObjectRegistry()
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -