Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RRReporter.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 src/protocols/rotamer_recovery/RRReporter.hh
11 /// @author Matthew O'Meara (mattjomeara@gmail.com)
12 
13 #ifndef INCLUDED_protocols_rotamer_recovery_RRReporter_hh
14 #define INCLUDED_protocols_rotamer_recovery_RRReporter_hh
15 
16 // Unit Headers
18 
19 // Project Headers
21 #include <core/types.hh>
22 #include <core/pose/Pose.fwd.hh>
23 
24 // Utility headers
25 #include <utility/pointer/ReferenceCount.hh>
26 #include <utility/vector1.hh>
27 // AUTO-REMOVED #include <utility/exit.hh>
28 
29 namespace protocols {
30 namespace rotamer_recovery {
31 
32 ///@brief The reporting functionality for the rotamer recovery test
33 ///
34 /// Besides implementing the interface given in the base class
35 /// RRReporter each RRReporter should have an entry in the conevience
36 /// RotamerRecovery constructor so its use can be indicated by name.
38 
39 public: // constructors destructors
40  ///@brief Automatically generated virtual destructor for class deriving directly from ReferenceCount
41  virtual ~RRReporter();
42 
43 public: // public interface
44 
45  virtual
46  void
48  std::string const & protocol_name,
49  std::string const & protocol_params) = 0;
50 
51  virtual
52  void
54  std::string const & comparer_name,
55  std::string const & comparer_params) = 0;
56 
57 
58  virtual
59  void
60  reset_recovery() = 0;
61 
62  virtual
63  void
65  core::pose::Pose const & pose1,
66  core::pose::Pose const & pose2,
67  core::conformation::Residue const & res1,
68  core::conformation::Residue const & res2,
69  core::Real score,
70  bool recovered
71  ) = 0;
72 
73  virtual
75  recovery_rate() const = 0;
76 
77  virtual
78  void
79  show(std::ostream & out ) const = 0;
80 
81  virtual
82  void
83  show() const = 0;
84 
85 };
86 
87 class RRReporterSimple : public RRReporter {
88 
89 public: // constructors destructors
90 
92 
94 
96 
97 
98 public: // public interface
99 
100  void
102  std::string const & /*protocol_name*/,
103  std::string const & /*protocol_params*/){}
104 
105  void
107  std::string const & /*comparer_name*/,
108  std::string const & /*comparer_params*/){}
109 
110  virtual
111  void
112  reset_recovery();
113 
114  virtual
115  void
117  core::pose::Pose const & pose1,
118  core::pose::Pose const & pose2,
119  core::conformation::Residue const & res1,
120  core::conformation::Residue const & res2,
121  core::Real score,
122  bool recovered
123  );
124 
125  virtual
126  core::Real
127  recovery_rate() const;
128 
129  virtual
130  void
131  show(std::ostream & out ) const;
132 
133  virtual
134  void
135  show() const;
136 
137 private: // data members
138 
141 
142 };
143 
144 } // namespace rotamer_recovery
145 } // namespace protocols
146 
147 
148 #endif // include guard