Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PoseMetricEvaluator.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 ClashEvaluator.hh
11 /// @brief
12 /// @detailed
13 ///
14 ///
15 ///
16 /// @author Oliver Lange
17 
18 
19 
20 #ifndef INCLUDED_protocols_simple_filters_PoseMetricEvaluator_hh
21 #define INCLUDED_protocols_simple_filters_PoseMetricEvaluator_hh
22 
23 
24 // Unit Headers
25 
26 // Package Headers
27 // AUTO-REMOVED #include <protocols/evaluation/PoseEvaluator.hh>
28 
29 // Project Headers
30 #include <core/pose/Pose.hh> // replace this with .fwd by moving methods to .cc file!
31 #include <basic/MetricValue.hh>
32 
33 // AUTO-REMOVED #include <core/kinematics/Stub.hh>
34 // AUTO-REMOVED #include <core/kinematics/RT.hh>
35 
36 // AUTO-REMOVED #include <core/io/silent/silent.fwd.hh>
37 
38 
39 // ObjexxFCL Headers
40 
41 // Utility headers
42 #include <utility/pointer/ReferenceCount.hh>
43 // AUTO-REMOVED #include <utility/vector1.hh>
44 
45 //// C++ headers
46 // AUTO-REMOVED #include <list>
47 
49 #include <utility/vector1.hh>
50 
51 
52 namespace protocols {
53 namespace simple_filters {
54 
55 template <class T >
56 class PoseMetricEvaluator : public evaluation::SingleValuePoseEvaluator< T > {
57 public:
58  PoseMetricEvaluator( std::string const& metric, std::string const& tag ) :
59  evaluation::SingleValuePoseEvaluator< T >( metric+"_"+tag ),
60  metric_( metric ),
61  tag_( tag )
62  {};
63  virtual T apply( core::pose::Pose& pose ) const;
64 private:
67 };
68 
69 
70 template < class T >
72  core::pose::Pose& pose
73 ) const {
74  basic::MetricValue< T > mr;
75  pose.metric(metric_,tag_,mr);
76  return mr.value();
77 }
78 
79 
80 }
81 }
82 
83 #endif