thepeg is hosted by Hepforge, IPPP Durham
ThePEG 2.3.0
ThePEG::IEnum< T > Struct Template Reference

The IEnum helper class is used to facilitate input of enums from persistent streams. More...

#include <EnumIO.h>

Public Member Functions

 IEnum (T &t)
 Constructor.
 
 IEnum (const IEnum &ie)
 Copy constructor.
 

Public Attributes

T & theT
 The variable to be read.
 

Detailed Description

template<typename T>
struct ThePEG::IEnum< T >

The IEnum helper class is used to facilitate input of enums from persistent streams.

An enum can hence be read like this:
is >> ienum(x);

See also
PersistentOStream
PersistentIStream

Definition at line 53 of file EnumIO.h.

Constructor & Destructor Documentation

◆ IEnum() [1/2]

template<typename T >
ThePEG::IEnum< T >::IEnum ( T &  t)
inline

Constructor.

Definition at line 56 of file EnumIO.h.

◆ IEnum() [2/2]

template<typename T >
ThePEG::IEnum< T >::IEnum ( const IEnum< T > &  ie)
inline

Copy constructor.

Definition at line 59 of file EnumIO.h.

Member Data Documentation

◆ theT

template<typename T >
T& ThePEG::IEnum< T >::theT

The variable to be read.

Definition at line 62 of file EnumIO.h.

Referenced by ThePEG::operator>>().


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