10 typedef std::map<LHEProxy::ProxyID, std::weak_ptr<LHEProxy> >
ProxyMap;
13 static struct Sentinel {
23 return sentinel.instance;
29 std::scoped_lock scoped_lock(
mutex);
39 std::scoped_lock scoped_lock(
mutex);
51 std::scoped_lock scoped_lock(
mutex);
55 return std::shared_ptr<LHEProxy>();
57 ProxyMap::const_iterator pos = map->find(
id);
58 if (pos == map->end())
59 return std::shared_ptr<LHEProxy>();
61 return std::shared_ptr<LHEProxy>(pos->second);
LHEProxy(const LHEProxy &orig)=delete
static PFTauRenderPlugin instance
std::map< ProxyBase::ProxyID, std::weak_ptr< ProxyBase > > ProxyMap
static std::shared_ptr< LHEProxy > find(ProxyID id)
static std::shared_ptr< LHEProxy > create()
Container::value_type value_type
static ProxyMap * getProxyMapInstance()