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
constraints
ResidueTypeLinkingConstraint.hh
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/constraints/ResidueConstraint.hh
11
///
12
/// @brief implements favor_native_residue constraints, assigning an energy bonus
13
/// to a residue if it matches the identity within the constraint object
14
/// @author Sarel Fleishman
15
16
17
#ifndef INCLUDED_core_scoring_constraints_ResidueTypeLinkingConstraint_hh
18
#define INCLUDED_core_scoring_constraints_ResidueTypeLinkingConstraint_hh
19
20
#include <
core/scoring/constraints/ResidueTypeLinkingConstraint.fwd.hh
>
21
#include <
core/scoring/constraints/Constraint.hh
>
22
23
#include <
core/conformation/Conformation.fwd.hh
>
24
#include <
core/id/AtomID.hh
>
25
26
#include <utility/vector1.hh>
27
28
29
namespace
core {
30
namespace
scoring {
31
namespace
constraints {
32
33
///@brief This class favors a particular residue identity at a particular position by reducing its res_type energy.
34
class
ResidueTypeLinkingConstraint
:
public
Constraint
35
{
36
public
:
37
typedef
core::Real
Real
;
38
public
:
39
ResidueTypeLinkingConstraint
();
40
41
ResidueTypeLinkingConstraint
(
42
pose::Pose
const
& pose,
43
Size
seqpos1,
44
Size
seqpos2,
45
Real
bonus
46
);
47
48
49
ResidueTypeLinkingConstraint
(
50
pose::Pose
const
& pose,
51
Size
seqpos1,
52
Size
seqpos2,
53
std::string
AA1name
,
54
std::string
AA2name
,
55
Real
bonus
56
);
57
/*
58
ResidueTypeLinkingConstraint(
59
Size seqpos1,
60
Size seqpos2,
61
std::string aa_in,
62
std::string name3_in,
63
core::Real bonus_in,
64
utility::vector1< AtomID > const & atoms_in
65
);
66
*/
67
virtual
~ResidueTypeLinkingConstraint
();
68
69
virtual
70
Size
71
natoms
()
const
{
return
0; }
72
73
virtual
74
AtomID
const
&
75
atom
(
Size
const
)
const
{
76
utility_exit_with_message(
"ResidueTypeLinkingConstraint is not atom-based!."
);
77
return
core::id::BOGUS_ATOM_ID
;
// required for compilation on Windows
78
}
79
80
virtual
81
utility::vector1< core::Size >
82
residues
()
const
;
83
84
void
85
show
( std::ostream & out )
const
;
86
/*
87
virtual
88
ConstraintOP
89
remap_resid( core::id::SequenceMapping const &seqmap ) const;
90
*/
91
92
/// @brief possibility to compare constraint according to data
93
/// and not just pointers
94
bool
operator ==
(
Constraint
const
& other )
const
;
95
/*
96
virtual ConstraintOP remapped_clone(
97
pose::Pose const & src,
98
pose::Pose const & dest,
99
id::SequenceMappingCOP map = NULL
100
) const;
101
*/
102
virtual
103
void
104
score
(
XYZ_Func
const
& xyz_func,
EnergyMap
const
& weights,
EnergyMap
& emap )
const
;
105
106
virtual
107
void
108
fill_f1_f2
(
109
AtomID
const
&
atom
,
110
XYZ_Func
const
&
xyz
,
111
Vector
& F1,
112
Vector
& F2,
113
EnergyMap
const
& weights
114
)
const
;
115
116
virtual
ConstraintOP
117
clone
()
const
;
118
private
:
119
Size
seqpos1_
;
120
Size
seqpos2_
;
121
std::string
AA1name
;
122
std::string
AA2name
;
123
std::string
rsd1_type_name3_
;
124
std::string
rsd2_type_name3_
;
125
core::Real
bonus_
;
126
};
// RotamerConstraint
127
128
129
}
// namespace constraints
130
}
// namespace scoring
131
}
// namespace core
132
133
#endif // INCLUDED_core_scoring_constraints_ResidueTypeLinkingConstraint_HH
Generated on Sat Jun 1 2013 11:35:44 for Rosetta 3.5 by
1.8.4