CMS 3D CMS Logo

LHEProxy.cc File Reference

#include <map>
#include <boost/thread.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/weak_ptr.hpp>
#include "GeneratorInterface/LHEInterface/interface/LHEProxy.h"

Go to the source code of this file.

Typedefs

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

Functions

static ProxyMapgetProxyMapInstance ()

Variables

static boost::mutex mutex


Typedef Documentation

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

Definition at line 13 of file LHEProxy.cc.


Function Documentation

static ProxyMap* getProxyMapInstance (  )  [static]

Definition at line 15 of file LHEProxy.cc.

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

00016 {
00017         static struct Sentinel {
00018                 Sentinel() : instance(new ProxyMap) {}
00019                 ~Sentinel() { delete instance; instance = 0; }
00020 
00021                 ProxyMap        *instance;
00022         } sentinel;
00023 
00024         return sentinel.instance;
00025 }


Variable Documentation

boost::mutex mutex [static]

Definition at line 11 of file LHEProxy.cc.

Referenced by lhef::LHEProxy::create(), lhef::LHEProxy::find(), edm::rootfix::getGlobalMutex(), PhysicsTools::Calibration::getNextMVAComputerCacheId(), BaseDecoratedSB::sync(), and lhef::LHEProxy::~LHEProxy().


Generated on Tue Jun 9 17:53:35 2009 for CMSSW by  doxygen 1.5.4