Simpatico  v1.10
ddMd/chemistry/MaskPolicy.h
1 #ifndef DDMD_MASK_POLICY_H
2 #define DDMD_MASK_POLICY_H
3 
4 /*
5 * Simpatico - Simulation Package for Polymeric and Molecular Liquids
6 *
7 * Copyright 2010 - 2017, 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 <util/global.h>
13 
14 #include <iostream>
15 
16 namespace DdMd
17 {
18 
29  enum MaskPolicy {MaskNone, MaskBonded};
30 
38  std::istream& operator >> (std::istream& in, MaskPolicy& policy);
39 
47  std::ostream& operator << (std::ostream& out, MaskPolicy policy);
48 
56  template <class Archive>
57  void serialize(Archive& ar, MaskPolicy& policy, const unsigned int version)
58  { serializeEnum(ar, policy, version); }
59 
60 }
61 
62 #include <util/global.h>
63 #ifdef UTIL_MPI
64 #include <util/mpi/MpiTraits.h>
65 
66 namespace Util
67 {
68 
72  template <>
74  public:
75  static MPI::Datatype type;
76  static bool hasType;
77  };
78 
79 }
80 #endif
81 
82 #endif
void serialize(Archive &ar, AtomType &atomType, const unsigned int version)
Serialize an AtomType.
std::istream & operator>>(std::istream &in, AtomType &atomType)
istream extractor (>>) for an AtomType.
static MPI::Datatype type
MPI Datatype.
File containing preprocessor macros for error handling.
static bool hasType
Is the MPI type initialized?
Parallel domain decomposition (DD) MD simulation.
Utility classes for scientific computation.
Definition: accumulators.mod:1
Default MpiTraits class.
Definition: MpiTraits.h:39
MaskPolicy
Enumeration of policies for suppressing ("masking") some pair interactions.
void serializeEnum(Archive &ar, T &data, const unsigned int version=0)
Serialize an enumeration value.
Definition: serialize.h:42
std::ostream & operator<<(std::ostream &out, const AtomType &atomType)
ostream inserter (<<) for an AtomType.