Simpatico  v1.10
mcMd/chemistry/MaskPolicy.h
1 #ifndef MCMD_MASK_POLICY_H
2 #define MCMD_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 McMd
17 {
18 
29  enum MaskPolicy {MaskNone=0, MaskBonded=1};
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
MaskPolicy
Enumeration of policies for suppressing ("masking") some pair interactions.
File containing preprocessor macros for error handling.
void serialize(Archive &ar, PairSelector &selector, const unsigned int version)
Serialize a PairSelector.
Definition: PairSelector.h:167
static MPI::Datatype type
MPI Datatype.
std::ostream & operator<<(std::ostream &out, const PairSelector &selector)
ostream inserter (<<) for a PairSelector object.
Utility classes for scientific computation.
Definition: accumulators.mod:1
Default MpiTraits class.
Definition: MpiTraits.h:39
void serializeEnum(Archive &ar, T &data, const unsigned int version=0)
Serialize an enumeration value.
Definition: serialize.h:42
std::istream & operator>>(std::istream &in, PairSelector &selector)
istream extractor (>>) for a PairSelector object.
Single-processor Monte Carlo (MC) and molecular dynamics (MD).
static bool hasType
Is the MPI type initialized?