CMS 3D CMS Logo

Typedefs | Functions | Variables
LHEProxy.cc File Reference
#include <map>
#include <mutex>
#include "GeneratorInterface/LHEInterface/interface/LHEProxy.h"

Go to the source code of this file.

Typedefs

typedef std::map< LHEProxy::ProxyID, std::weak_ptr< LHEProxy > > ProxyMap
 

Functions

static ProxyMapgetProxyMapInstance ()
 

Variables

static std::mutex mutex
 

Typedef Documentation

◆ ProxyMap

typedef std::map<LHEProxy::ProxyID, std::weak_ptr<LHEProxy> > ProxyMap

Definition at line 10 of file LHEProxy.cc.

Function Documentation

◆ getProxyMapInstance()

static ProxyMap* getProxyMapInstance ( )
static

Definition at line 12 of file LHEProxy.cc.

References instance.

Referenced by lhef::LHEProxy::create(), lhef::LHEProxy::find(), and lhef::LHEProxy::~LHEProxy().

12  {
13  static struct Sentinel {
14  Sentinel() : instance(new ProxyMap) {}
15  ~Sentinel() {
16  delete instance;
17  instance = nullptr;
18  }
19 
21  } sentinel;
22 
23  return sentinel.instance;
24 }
static PFTauRenderPlugin instance
std::map< ProxyBase::ProxyID, std::weak_ptr< ProxyBase > > ProxyMap
Definition: Proxy.cc:10

Variable Documentation

◆ mutex

std::mutex mutex
static