Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
NonlocalFrags.hh
Go to the documentation of this file.
1 // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2 // vi: set ts=2 noet:
3 //
4 // (c) Copyright Rosetta Commons Member Institutions.
5 // (c) This file is part of the Rosetta software suite and is made available under license.
6 // (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7 // (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8 // (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9 
10 /// @file protocols/frag_picker/nonlocal/NonlocalFrags.hh
11 /// @author David Kim (dekim@u.washington.edu)
12 
13 #ifndef INCLUDED_PROTOCOLS_FRAG_PICKER_NONLOCAL_NONLOCALFRAGS_HH
14 #define INCLUDED_PROTOCOLS_FRAG_PICKER_NONLOCAL_NONLOCALFRAGS_HH
15 
16 // Unit header
18 
19 // C/C++ headers
20 #include <string>
21 #include <map>
22 
23 // Package headers
24 
25 // Project headers
26 #include <core/pose/Pose.fwd.hh>
27 #include <protocols/moves/Mover.hh>
28 
29 // Utility headers
30 #include <utility/vector1.hh>
31 
32 namespace protocols {
33 namespace frag_picker {
34 namespace nonlocal {
35 
36 
38 
39 public:
40  /// @brief Constructs a new mover
41  NonlocalFrags();
42 
43  /// @brief Finds interacting non-local fragment pairs
44  void apply(core::pose::Pose& pose);
45 
46  /// @brief Returns the name of this mover.
47  std::string get_name() const;
48 
49  /// @brief Creates a copy of this instance
51 
52  /// @brief Creates a new instance by calling the no-argument constructor
54 
55  /// @brief Registers applicable options
56  static void register_options();
57 
58 private:
59 
60  void initialize();
61 
62 
63  bool recover_checkpoint( const std::string tag, core::pose::Pose& pose );
64 
65  void write_checkpoint( const std::string tag, const std::string data );
66 
67  void read_checkpoint_file();
68 
69  /* Members */
70 
75 
77  std::map< std::string, std::string > checkpoints_map_;
78 
80 
86 
89 };
90 
91 } // namespace nonlocal
92 } // namespace frag_picker
93 } // namespace protocols
94 
95 #endif // PROTOCOLS_FRAG_PICKER_NONLOCAL_FRAGS_NONLOCALFRAGS_HH_