ThePEG::IEnum< T > Struct Template Reference

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

#include <EnumIO.h>

List of all members.

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

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

Constructor.

Definition at line 56 of file EnumIO.h.

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:

Generated on Thu Apr 29 12:43:25 2010 for ThePEG by  doxygen 1.5.5