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
scoring
methods
LinearChainbreakEnergyCreator.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/scoring/methods/LinearChainbreakEnergyCreator.cc
11
/// @brief LinearChainbreakEnergyCreator implementation
12
/// @author Christopher Miles (cmiles@uw.edu)
13
14
#include <
core/scoring/ScoreType.hh
>
15
// AUTO-REMOVED #include <core/scoring/types.hh>
16
#include <
core/scoring/methods/EnergyMethod.hh
>
17
#include <
core/scoring/methods/EnergyMethodOptions.hh
>
18
#include <
core/scoring/methods/LinearChainbreakEnergy.hh
>
19
#include <
core/scoring/methods/LinearChainbreakEnergyCreator.hh
>
20
21
#include <utility/vector1.hh>
22
23
24
namespace
core {
25
namespace
scoring {
26
namespace
methods {
27
28
/// @details Creates and initializes a new LinearChainbreakEnergy object with the
29
/// specified options
30
EnergyMethodOP
31
LinearChainbreakEnergyCreator::create_energy_method
(
const
EnergyMethodOptions
& opt)
const
{
32
// EnergyMethodOptions is responsible for providing a reasonable default
33
// in the event that the caller does not specify a sequence separation
34
// constraint. Currently, cst_max_seq_sep() defaults to +inf.
35
Size
allowable_sequence_separation = opt.
cst_max_seq_sep
();
36
return
new
LinearChainbreakEnergy
(allowable_sequence_separation);
37
}
38
39
ScoreTypes
40
LinearChainbreakEnergyCreator::score_types_for_method
()
const
{
41
ScoreTypes
types;
42
types.push_back(
linear_chainbreak
);
43
types.push_back(
overlap_chainbreak
);
44
return
types;
45
}
46
47
}
// namespace methods
48
}
// namespace scoring
49
}
// namespace core
Generated on Sat Jun 1 2013 11:38:07 for Rosetta 3.5 by
1.8.4