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
core
util
ChainbreakUtil.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 core/util/ChainbreakUtil.cc
11
/// @author Christopher Miles (cmiles@uw.edu)
12
13
// Unit header
14
#include <
core/util/ChainbreakUtil.hh
>
15
16
// Project headers
17
#include <
core/pose/Pose.hh
>
18
#include <
core/scoring/ScoreFunction.hh
>
19
#include <
core/util/kinematics_util.hh
>
20
21
//Auto Headers
22
#include <utility/vector1.hh>
23
24
namespace
core {
25
namespace
util {
26
27
// Static member initialization
28
core::scoring::ScoreFunctionOP
ChainbreakUtil::score_
= 0;
29
30
bool
ChainbreakUtil::has_chainbreak
(
const
core::pose::Pose
& pose) {
31
using
core::pose::Pose
;
32
33
if
(!
score_
) {
34
score_
=
new
core::scoring::ScoreFunction
();
35
score_
->set_weight(
core::scoring::linear_chainbreak
, 1.0 );
36
}
37
38
Pose
copy(pose);
39
add_cutpoint_variants
(©);
40
41
score_
->score(copy);
42
return
(*
score_
)[
core::scoring::linear_chainbreak
] > 0;
43
}
44
45
}
// namesapce util
46
}
// namespace core
Generated on Sat Jun 1 2013 11:40:29 for Rosetta 3.5 by
1.8.4