Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PoseEvaluator.cc
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 PoseEvaluator
11 /// @brief PoseEvaluator
12 /// @detailed
13 ///
14 ///
15 /// @author Oliver Lange
16 
17 
18 
19 // Unit Headers
21 
22 // Package Headers
23 
24 // Project Headers
26 #include <core/pose/Pose.hh>
27 
28 // ObjexxFCL Headers
29 
30 // Utility headers
31 // AUTO-REMOVED #include <basic/Tracer.hh>
32 // AUTO-REMOVED #include <core/scoring/rms_util.hh>
33 
34 #include <utility/exit.hh>
35 #include <utility/vector1.hh>
36 
37 
38 // C++ headers
39 
40 
41 namespace protocols {
42 namespace evaluation {
43 using namespace core;
44 
46  core::pose::Pose pose;
47  pss.fill_pose( pose );
48  apply( pose, pss.decoy_tag(), pss );
49 }
50 
52  for ( EvaluatorList::const_iterator it=evaluators_.begin(), eit=evaluators_.end();
53  it!=eit; ++it ) {
54  (*it)->apply( pose, tag, pss );
55  }
56 }
57 
59  runtime_assert( ind <= size() );
60  Size s( 0 );
61  Size last_s( 0 );
62  EvaluatorList::const_iterator it = evaluators_.begin();
63  for ( ; it != evaluators_.end() && s < ind; ++it ) {
64  last_s = s;
65  s += (*it)->size();
66  }
67  runtime_assert( it != evaluators_.end() );
68  return (*it)->name( ind - last_s );
69 }
70 
71 
72 
73 
74 } //evaluation
75 } //protocol
76