CMS 3D CMS Logo

Typedefs | Functions | Variables
LHEProxy.cc File Reference
#include <map>
#include <boost/thread.hpp>
#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 boost::mutex mutex
 

Typedef Documentation

◆ ProxyMap

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

Definition at line 11 of file LHEProxy.cc.

Function Documentation

◆ getProxyMapInstance()

static ProxyMap* getProxyMapInstance ( )
static

Definition at line 13 of file LHEProxy.cc.

13  {
14  static struct Sentinel {
15  Sentinel() : instance(new ProxyMap) {}
16  ~Sentinel() {
17  delete instance;
18  instance = nullptr;
19  }
20 
22  } sentinel;
23 
24  return sentinel.instance;
25 }

References instance.

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

Variable Documentation

◆ mutex

boost::mutex mutex
static
instance
static PFTauRenderPlugin instance
Definition: PFTauRenderPlugin.cc:70
ProxyMap
std::map< ProxyBase::ProxyID, std::weak_ptr< ProxyBase > > ProxyMap
Definition: Proxy.cc:11