CMS 3D CMS Logo

Public Types | Static Public Member Functions | Protected Member Functions | Static Private Member Functions

ThePEG::Proxy< T > Class Template Reference

#include <Proxy.h>

Inheritance diagram for ThePEG::Proxy< T >:
ThePEG::ProxyBase

List of all members.

Public Types

typedef Proxy Base

Static Public Member Functions

static boost::shared_ptr< Tcreate ()
static boost::shared_ptr< Tfind (ProxyID id)

Protected Member Functions

 Proxy (ProxyID id)

Static Private Member Functions

static ProxyBasector (ProxyID id)

Detailed Description

template<class T>
class ThePEG::Proxy< T >

Definition at line 40 of file Proxy.h.


Member Typedef Documentation

template<class T>
typedef Proxy ThePEG::Proxy< T >::Base

Definition at line 42 of file Proxy.h.


Constructor & Destructor Documentation

template<class T>
ThePEG::Proxy< T >::Proxy ( ProxyID  id) [inline, protected]

Reimplemented in ThePEG::RandomEngineGlue::Proxy.

Definition at line 50 of file Proxy.h.

: ProxyBase(id) {}

Member Function Documentation

template<class T>
static boost::shared_ptr<T> ThePEG::Proxy< T >::create ( void  ) [inline, static]

Definition at line 44 of file Proxy.h.

Referenced by ThePEG::Proxy< Proxy >::create().

        { return boost::static_pointer_cast<T>(ProxyBase::create(&Proxy::ctor)); }
template<class T>
static ProxyBase* ThePEG::Proxy< T >::ctor ( ProxyID  id) [inline, static, private]

Definition at line 53 of file Proxy.h.

Referenced by ThePEG::Proxy< Proxy >::create().

{ return new T(id); }
template<class T>
static boost::shared_ptr<T> ThePEG::Proxy< T >::find ( ProxyID  id) [inline, static]

Reimplemented from ThePEG::ProxyBase.

Definition at line 46 of file Proxy.h.

Referenced by ThePEG::Proxy< Proxy >::find().

        { return boost::dynamic_pointer_cast<T>(ProxyBase::find(id)); }