9 #ifndef ThePEG_EnumIO_H
10 #define ThePEG_EnumIO_H
79 template <
typename OStream,
typename T>
80 OStream & operator<<(OStream & os, const OEnum<T> & e) {
86 template <
typename IStream,
typename T>
The OEnum helper class is used to facilitate output of enums to persistent streams.
IEnum< T > ienum(T &t)
Helper function to create an IEnum object for a given variable.
This is the main namespace within which all identifiers in ThePEG are declared.
OEnum< T > oenum(const T &t)
Helper function to create an OEnum object for a given variable.
vector< T > & operator>>(vector< T > &tv, U &u)
Overload the right shift operator for vector to pop objects from a vector.
T & theT
The variable to be read.
OEnum(const OEnum &oe)
Copy constructor.
IEnum(const IEnum &ie)
Copy constructor.
OEnum(const T &t)
Constructor.
const T & theT
The variable to be written.
The IEnum helper class is used to facilitate input of enums from persistent streams.