PSCF v1.1
GeometryMode.h
1#ifndef FD1D_GEOMETRY_MODE_H
2#define FD1D_GEOMETRY_MODE_H
3
4/*
5* Simpatico - Simulation Package for Polymeric and Molecular Liquids
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{
15namespace Fd1d
16{
17
30 enum GeometryMode {Planar, Cylindrical, Spherical};
31
39 std::istream& operator >> (std::istream& in, GeometryMode& mode);
40
48 std::ostream& operator << (std::ostream& out, GeometryMode mode);
49
57 template <class Archive>
58 void serialize(Archive& ar, GeometryMode& mode, const unsigned int version)
59 { serializeEnum(ar, mode, version); }
60
61}
62}
63#endif
GeometryMode
Enumeration of geometrical modes for functions of one coordinate.
Definition: GeometryMode.h:30
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).
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