CMS 3D CMS Logo

Typedefs | Functions | Variables

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/GeneratorInterface/ThePEGInterface/src/Proxy.cc File Reference

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

Go to the source code of this file.

Typedefs

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

Functions

static ProxyMapgetProxyMapInstance ()

Variables

static boost::mutex mutex

Typedef Documentation

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

Definition at line 13 of file Proxy.cc.


Function Documentation

static ProxyMap* getProxyMapInstance ( ) [static]

Definition at line 15 of file Proxy.cc.

References instance.

Referenced by ThePEG::ProxyBase::create(), ThePEG::ProxyBase::find(), and ThePEG::ProxyBase::~ProxyBase().

{
        static struct Sentinel {
                Sentinel() : instance(new ProxyMap) {}
                ~Sentinel() { delete instance; instance = 0; }

                ProxyMap        *instance;
        } sentinel;

        return sentinel.instance;
}

Variable Documentation

boost::mutex mutex [static]