Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
15 // AUTO-REMOVED #include <core/scoring/types.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
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 
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