CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | 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

Public Types

typedef Proxy Base
 
- Public Types inherited from ThePEG::ProxyBase
typedef unsigned long ProxyID
 

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)
 

Additional Inherited Members

- Public Member Functions inherited from ThePEG::ProxyBase
ProxyID getID () const
 
virtual ~ProxyBase ()
 

Detailed Description

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

Definition at line 12 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)
inlineprotected

Definition at line 50 of file Proxy.h.

50 : ProxyBase(id) {}
ProxyBase(ProxyID id)
Definition: Proxy.cc:27

Member Function Documentation

template<class T>
static boost::shared_ptr<T> ThePEG::Proxy< T >::create ( )
inlinestatic

Definition at line 44 of file Proxy.h.

45  { return boost::static_pointer_cast<T>(ProxyBase::create(&Proxy::ctor)); }
static ProxyBase * ctor(ProxyID id)
Definition: Proxy.h:53
static boost::shared_ptr< ProxyBase > create(ctor_t ctor)
Definition: Proxy.cc:41
long double T
template<class T>
static ProxyBase* ThePEG::Proxy< T >::ctor ( ProxyID  id)
inlinestaticprivate

Definition at line 53 of file Proxy.h.

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

53 { return new T(id); }
long double T
template<class T>
static boost::shared_ptr<T> ThePEG::Proxy< T >::find ( ProxyID  id)
inlinestatic

Definition at line 46 of file Proxy.h.

47  { return boost::dynamic_pointer_cast<T>(ProxyBase::find(id)); }
static boost::shared_ptr< ProxyBase > find(ProxyID id)
Definition: Proxy.cc:56
long double T