PSCF v1.1
PolymerType.h
1#ifndef PSCF_POLYMER_TYPE_H
2#define PSCF_POLYMER_TYPE_H
3
4/*
5* PSCF - Polymer Self-Consistent Field Theory
6*
7* Copyright 2016 - 2022, The Regents of the University of Minnesota
8* Distributed under the terms of the GNU General Public License.
9*/
10
11#include <util/archives/serialize.h>
12#include <iostream>
13
14namespace Pscf
15{
16
17 using namespace Util;
18
27 struct PolymerType {
28 enum Enum {Branched, Linear};
29 };
30
37 std::istream& operator >> (std::istream& in, PolymerType::Enum& type);
38
45 std::ostream& operator << (std::ostream& out, PolymerType::Enum& type);
46
54 template <class Archive>
55 inline void
56 serialize(Archive& ar, PolymerType::Enum& data, const unsigned int version)
57 { serializeEnum(ar, data, version); }
58
59}
60#endif
void serializeEnum(Archive &ar, T &data, const unsigned int version=0)
Serialize an enumeration value.
Definition: serialize.h:42
C++ namespace for polymer self-consistent field theory (PSCF).
Utility classes for scientific computation.
Definition: accumulators.mod:1
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
Struct containing an enumeration of polymer structure types.
Definition: PolymerType.h:27