Rosetta 3.5
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
protocols
flexpack
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
15
#include <
protocols/flexpack/OtherContextScoreFunction.hh
>
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
27
OtherContextScoreFunction::OtherContextScoreFunction
() :
28
ScoreFunction
(),
29
scored_context_pose_( false )
30
{
31
}
32
33
OtherContextScoreFunction::~OtherContextScoreFunction
() {}
34
35
OtherContextScoreFunction::OtherContextScoreFunction
(
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
45
OtherContextScoreFunction::pre_scoring
()
46
{
47
(*this)( *context_pose_ );
// score the context pose.
48
}
49
50
void
51
OtherContextScoreFunction::set_context_pose
(
core::pose::Pose
const
& pose )
52
{
53
context_pose_
=
new
core::pose::Pose
( pose );
54
scored_context_pose_
=
false
;
55
}
56
57
void
58
OtherContextScoreFunction::eval_cd_1b
(
59
core::conformation::Residue
const
& rsd,
60
core::pose::Pose
const
&
/*pose*/
,
61
core::scoring::EnergyMap
& emap
62
)
const
63
{
64
parent::eval_cd_1b
( rsd, *
context_pose_
, emap );
65
}
66
67
68
void
69
OtherContextScoreFunction::eval_cd_2b
(
70
core::conformation::Residue
const
& rsd1,
71
core::conformation::Residue
const
& rsd2,
72
core::pose::Pose
const
&
/*pose*/
,
73
core::scoring::EnergyMap
& emap
74
)
const
75
{
76
parent::eval_cd_2b
( rsd1, rsd2, *
context_pose_
, emap );
77
}
78
79
80
void
81
OtherContextScoreFunction::eval_cd_intrares_energy
(
82
core::conformation::Residue
const
& rsd,
83
core::pose::Pose
const
&
/*pose*/
,
84
core::scoring::EnergyMap
& emap
85
)
const
86
{
87
parent::eval_cd_intrares_energy
( rsd, *
context_pose_
, emap );
88
}
89
90
91
}
92
}
93
Generated on Sat Jun 1 2013 11:50:23 for Rosetta 3.5 by
1.8.4