thepeg is hosted by Hepforge, IPPP Durham
ThePEG 2.3.0
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.
 
 OEnum (const OEnum &oe)
 Copy constructor.
 

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.

Member Data Documentation

◆ theT

template<typename T >
const T& ThePEG::OEnum< T >::theT

The variable to be written.

Definition at line 39 of file EnumIO.h.

Referenced by ThePEG::operator<<().


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