Scine::Swoose  2.1.0
This is the SCINE module Swoose.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
ReparametrizationHelper.h
Go to the documentation of this file.
1 
8 #ifndef MMPARAMETRIZATION_REPARAMETRIZATIONHELPER_H
9 #define MMPARAMETRIZATION_REPARAMETRIZATIONHELPER_H
10 
11 #include <string>
12 #include <unordered_set>
13 
14 namespace Scine {
15 
16 namespace Core {
17 struct Log;
18 } // namespace Core
19 
20 namespace MMParametrization {
21 struct ParametrizationData;
22 
30  public:
35 
40  void parseProvidedParameters(const std::string& parameterFile);
41 
46  void manipulateTopology();
47 
53  bool isRelevantFragment(int fragmentIndex) const;
54 
55  private:
56  // The data used within all MM parametrization classes
57  ParametrizationData& data_;
58  // The logger.
59  Core::Log& log_;
60  /*
61  * Container for all atoms whose fragments will be relevant during the re-parametrization process.
62  * It is filled when executing the manipulateTopology() function and used by the SuperfluousFragmentIdentifier
63  * class to identify for which fragments it is not necessary to calculate reference data.
64  */
65  std::unordered_set<int> relevantFragments_;
66 };
67 
68 } // namespace MMParametrization
69 } // namespace Scine
70 
71 #endif // MMPARAMETRIZATION_REPARAMETRIZATIONHELPER_H
void manipulateTopology()
Removes all of the topological elements from the topology in the ParametrizationData object...
Definition: ReparametrizationHelper.cpp:27
bool isRelevantFragment(int fragmentIndex) const
Returns whether reference data has to be calculated for a fragment with the given fragment index in t...
Definition: ReparametrizationHelper.cpp:94
void parseProvidedParameters(const std::string &parameterFile)
Parses already provided parameters and stores them into the ParametrizationData object.
Definition: ReparametrizationHelper.cpp:20
This class provides functionalities for the re-parametrization of a system, which has only slightly b...
Definition: ReparametrizationHelper.h:29
ReparametrizationHelper(ParametrizationData &data, Core::Log &log)
Constructor.
Definition: ReparametrizationHelper.cpp:17
This struct holds all objects used inside the MM parametrization algorithm.
Definition: ParametrizationData.h:29