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

The OEnum helper class is used to facilitate output of enums to persistent streams. More...

#include <EnumIO.h>

Public Member Functions

 OEnum (const T &t)
 Constructor. More...
 
 OEnum (const OEnum &oe)
 Copy constructor. More...
 

Public Attributes

const T & theT
 The variable to be written.
 

Detailed Description

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

The OEnum helper class is used to facilitate output of enums to persistent streams.

An enum can hence be written like this:
os >> oenum(x);

See also
PersistentOStream
PersistentIStream

Definition at line 30 of file EnumIO.h.

Constructor & Destructor Documentation

◆ OEnum() [1/2]

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

Constructor.

Definition at line 33 of file EnumIO.h.

◆ OEnum() [2/2]

template<typename T >
ThePEG::OEnum< T >::OEnum ( const OEnum< T > &  oe)
inline

Copy constructor.

Definition at line 36 of file EnumIO.h.


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