ThePEG  1.8.0
Public Member Functions | Public Attributes
ThePEG::OEnum< T > Struct Template Reference

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

#include <EnumIO.h>

List of all members.

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

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

Constructor.

Definition at line 33 of file EnumIO.h.

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: