1 #ifndef UGDK_MODULE_PROXY_CACHE_H_
2 #define UGDK_MODULE_PROXY_CACHE_H_
23 static void Set(
void* key, T*
object) { BaseProxy::table_[key] = object; }
26 return BaseProxy::table_.count(proxy.
unsafe_data()) > 0;
32 if (BaseProxy::table_.count(key) == 0) {
37 obj = BaseProxy::table_[key];
45 if (BaseProxy::table_.count(key) == 0) {
50 obj = BaseProxy::table_[key];
59 static std::map<void*, T*> table_;