thepeg is hosted by Hepforge, IPPP Durham
ThePEG  2.1.4
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. More...
 
 IEnum (const IEnum &ie)
 Copy constructor. More...
 

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.


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