PSCF v1.4.0
Ensemble.h
1#ifndef PSCF_ENSEMBLE_H
2#define PSCF_ENSEMBLE_H
3
4/*
5* PSCF - Polymer Self-Consistent Field
6*
7* Copyright 2015 - 2025, The Regents of the University of Minnesota
8* Distributed under the terms of the GNU General Public License.
9*/
10
11#include <util/param/ParamComposite.h> // base class
12#include <util/global.h>
13
14namespace Pscf {
15
16 using namespace Util;
17
23 enum class Ensemble {Unknown, Closed, Open};
24
32 std::istream& operator >> (std::istream& in, Ensemble& policy);
33
43 std::ostream& operator << (std::ostream& out, Ensemble policy);
44
52 template <class Archive>
53 void serialize(Archive& ar, Ensemble& policy,
54 const unsigned int version)
55 { serializeEnum(ar, policy, version); }
56
57}
58#endif
File containing preprocessor macros for error handling.
Ensemble
Statistical ensemble type for the number of molecules of one species.
Definition Ensemble.h:23
void serializeEnum(Archive &ar, T &data, const unsigned int version=0)
Serialize an enumeration value.
Definition serialize.h:59
PSCF package top-level namespace.
std::istream & operator>>(std::istream &in, Pair< Data > &pair)
Input a Pair from an istream.
Definition Pair.h:44
std::ostream & operator<<(std::ostream &out, const Pair< Data > &pair)
Output a Pair to an ostream, without line breaks.
Definition Pair.h:57