thepeg is hosted by Hepforge, IPPP Durham
ThePEG 2.3.0
ThePEG::AnyReference::ReferenceHolder< T > Struct Template Reference
Inheritance diagram for ThePEG::AnyReference::ReferenceHolder< T >:

Public Member Functions

 ReferenceHolder ()
 The default constructor.
 
 ReferenceHolder (T &v)
 Construct from given reference.
 
virtual const std::type_info & type () const
 Return the type held.
 
virtual ReferenceHolderBaseclone () const
 Clone this reference holder.
 
- Public Member Functions inherited from ThePEG::AnyReference::ReferenceHolderBase
virtual ~ReferenceHolderBase ()
 The destructor.
 
virtual const std::type_info & type () const =0
 Return the type held.
 
virtual ReferenceHolderBaseclone () const =0
 Clone this reference holder.
 

Static Public Member Functions

static T & init ()
 Static member to initialize the reference.
 

Public Attributes

T & value
 The reference held.
 

Detailed Description

template<class T>
struct ThePEG::AnyReference::ReferenceHolder< T >

Definition at line 44 of file AnyReference.h.

Constructor & Destructor Documentation

◆ ReferenceHolder() [1/2]

template<class T >
ThePEG::AnyReference::ReferenceHolder< T >::ReferenceHolder ( )
inline

The default constructor.

Definition at line 62 of file AnyReference.h.

Referenced by ThePEG::AnyReference::ReferenceHolder< T >::clone().

◆ ReferenceHolder() [2/2]

template<class T >
ThePEG::AnyReference::ReferenceHolder< T >::ReferenceHolder ( T &  v)
inlineexplicit

Construct from given reference.

Definition at line 68 of file AnyReference.h.

Member Function Documentation

◆ clone()

template<class T >
virtual ReferenceHolderBase * ThePEG::AnyReference::ReferenceHolder< T >::clone ( ) const
inlinevirtual

Clone this reference holder.

Implements ThePEG::AnyReference::ReferenceHolderBase.

Definition at line 81 of file AnyReference.h.

References ThePEG::AnyReference::ReferenceHolder< T >::ReferenceHolder().

◆ init()

template<class T >
static T & ThePEG::AnyReference::ReferenceHolder< T >::init ( )
inlinestatic

Static member to initialize the reference.

Definition at line 55 of file AnyReference.h.

Referenced by ThePEG::AnyReference::cast().

◆ type()

template<class T >
virtual const std::type_info & ThePEG::AnyReference::ReferenceHolder< T >::type ( ) const
inlinevirtual

Return the type held.

Implements ThePEG::AnyReference::ReferenceHolderBase.

Definition at line 74 of file AnyReference.h.

Member Data Documentation

◆ value

template<class T >
T& ThePEG::AnyReference::ReferenceHolder< T >::value

The reference held.

Definition at line 50 of file AnyReference.h.


The documentation for this struct was generated from the following file: