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
comparative_modeling
IgnoreSubsetConstraintSet.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
11
/// @brief
12
/// @author James Thompson
13
14
#ifndef INCLUDED_protocols_comparative_modeling_IgnoreSubsetConstraintSet_hh
15
#define INCLUDED_protocols_comparative_modeling_IgnoreSubsetConstraintSet_hh
16
17
#include <
protocols/comparative_modeling/IgnoreSubsetConstraintSet.fwd.hh
>
18
19
#include <
core/types.hh
>
20
#include <
core/pose/Pose.fwd.hh
>
21
#include <
core/scoring/ScoreFunction.fwd.hh
>
22
#include <
core/scoring/constraints/ConstraintSet.hh
>
23
// AUTO-REMOVED #include <utility/vector1.hh>
24
25
// C++ headers
26
#include <set>
27
#include <string>
28
29
#include <utility/vector1.hh>
30
31
32
33
namespace
protocols {
34
namespace
comparative_modeling {
35
36
class
IgnoreSubsetConstraintSet
:
public
core::scoring::constraints::ConstraintSet
{
37
typedef
core::scoring::constraints::ConstraintSetOP
ConstraintSetOP
;
38
public
:
39
//IgnoreSubsetConstraintSet( ConstraintSet const & other );
40
41
IgnoreSubsetConstraintSet
(
IgnoreSubsetConstraintSet
const
&other );
42
43
IgnoreSubsetConstraintSet
(
44
std::set< int > residues_to_ignore,
45
ConstraintSet
const
& other
46
);
47
48
49
ConstraintSetOP
clone
()
const
{
50
return
new
IgnoreSubsetConstraintSet
( *
this
);
51
}
52
53
void
54
residue_pair_energy
(
55
Residue
const
& rsd1,
56
Residue
const
& rsd2,
57
Pose
const
& pose,
58
core::scoring::ScoreFunction
const
& scorefxn,
59
core::scoring::EnergyMap
& emap
60
)
const
;
61
62
/// @brief Allow the parent class implementation to add the residue constraints
63
/// for this residue to the res_data_cache if this residue is not being ignored.
64
virtual
65
void
66
setup_for_minimizing_for_residue
(
67
core::conformation::Residue
const
& rsd,
68
core::pose::Pose
const
& pose,
69
core::scoring::ScoreFunction
const
& sfxn,
70
core::kinematics::MinimizerMapBase
const
& minmap,
71
core::scoring::ResSingleMinimizationData
& res_data_cache
72
)
const
;
73
74
75
/// @brief Allow the parent class implenetation to add the residue-pair constraints
76
/// for this residue pair to the respair_data_cache if neither residues are being ignored.
77
virtual
78
void
79
setup_for_minimizing_for_residue_pair
(
80
core::conformation::Residue
const
& rsd1,
81
core::conformation::Residue
const
& rsd2,
82
core::pose::Pose
const
& pose,
83
core::scoring::ScoreFunction
const
& sfxn,
84
core::kinematics::MinimizerMapBase
const
& minmap,
85
core::scoring::ResSingleMinimizationData
const
& res1_data_cache,
86
core::scoring::ResSingleMinimizationData
const
& res2_data_cache,
87
core::scoring::ResPairMinimizationData
& respair_data_cache
88
)
const
;
89
90
/// @brief Returns true if we're supposed to ignore this sequence position,
91
/// false otherwise.
92
bool
ignore
(
int
const
pos )
const
;
93
94
void
ignore_residue
(
int
const
pos );
95
96
std::set< int >
ignore_list
()
const
;
97
98
99
///
100
bool
101
residue_pair_constraint_exists
(
int
const
pos1,
int
const
pos2 )
const
102
{
103
if
(
ignore
(pos1) ||
ignore
(pos2) )
return
false
;
104
return
ConstraintSet::residue_pair_constraint_exists
( pos1, pos2 );
105
}
106
107
protected
:
108
109
/*void
110
eval_atom_derivative_for_residue_pairs(
111
core::id::AtomID const & atom_id,
112
core::pose::Pose const & pose,
113
core::scoring::ScoreFunction const &,
114
core::scoring::EnergyMap const & weights,
115
core::Vector & F1,
116
core::Vector & F2
117
) const;*/
118
119
private
:
120
std::set< int >
ignore_list_
;
121
};
// class IgnoreSubsetConstraintSet
122
123
}
// comparative_modeling
124
}
// protocols
125
126
#endif
Generated on Sat Jun 1 2013 11:45:29 for Rosetta 3.5 by
1.8.4