Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OtherContextScoreFunction.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 protocols/flexpack/OtherContextScoreFunction.cc
11 /// @brief
12 /// @author Andrew Leaver-Fay (aleaverfay@gmail.com), Florian Richter (floric@u.washington.edu)
13 
14 // Unit headers
16 
17 // Project headers
18 #include <core/pose/Pose.hh> // #INCLUDING POSE.HH IN CC FILES ONLY
19 
20 #include <utility/vector1.hh>
21 
22 
23 namespace protocols {
24 namespace flexpack {
25 
26 
28  ScoreFunction(),
29  scored_context_pose_( false )
30 {
31 }
32 
34 
36  core::pose::Pose const & context_pose
37 ) :
38  ScoreFunction(),
39  context_pose_( new core::pose::Pose( context_pose ) ),
40  scored_context_pose_( false )
41 {
42 }
43 
44 void
46 {
47  (*this)( *context_pose_ ); // score the context pose.
48 }
49 
50 void
52 {
53  context_pose_ = new core::pose::Pose( pose );
54  scored_context_pose_ = false;
55 }
56 
57 void
59  core::conformation::Residue const & rsd,
60  core::pose::Pose const & /*pose*/,
62 ) const
63 {
64  parent::eval_cd_1b( rsd, *context_pose_, emap );
65 }
66 
67 
68 void
70  core::conformation::Residue const & rsd1,
71  core::conformation::Residue const & rsd2,
72  core::pose::Pose const & /*pose*/,
74 ) const
75 {
76  parent::eval_cd_2b( rsd1, rsd2, *context_pose_, emap );
77 }
78 
79 
80 void
82  core::conformation::Residue const & rsd,
83  core::pose::Pose const & /*pose*/,
85 ) const
86 {
88 }
89 
90 
91 }
92 }
93