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
Constructor.
Definition at line 33 of file EnumIO.h.
Copy constructor.
Definition at line 36 of file EnumIO.h.
The documentation for this struct was generated from the following file: