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
Constraint.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
11
/// @brief
12
13
// Unit Headers
14
#include <
core/scoring/constraints/Constraint.hh
>
15
16
// Project Headers
17
18
#include <
core/id/AtomID.hh
>
19
20
// Utility header
21
#include <utility/vector1.hh>
22
23
// C++ Headers
24
25
#include <algorithm>
26
27
namespace
core {
28
namespace
scoring {
29
namespace
constraints {
30
31
/// @details Auto-generated virtual destructor
32
Constraint::~Constraint
() {}
33
34
Size
35
Constraint::show_violations
(
36
std::ostream & out,
37
pose::Pose
const
&,
38
Size
,
39
Real
/*threshold*/
40
)
const
{
41
out <<
"Constraint_show_violation stubbed out!\n"
;
42
//threshold = 1; //to make compile happy // set but never used ~Labonte
43
return
0;
44
}
45
46
utility::vector1< core::Size >
47
Constraint::residues
()
const
{
48
utility::vector1< int >
pos_list;
49
for
(
Size
i=1; i<=
natoms
(); ++i ) {
50
int
const
seqpos(
atom
(i).rsd() );
51
// seqpos already in list?
52
if
( std::find( pos_list.begin(), pos_list.end(), seqpos ) == pos_list.end() ) {
53
pos_list.push_back( seqpos );
54
}
55
}
56
return
pos_list;
57
}
58
59
}
60
}
61
}
62
Generated on Sat Jun 1 2013 11:35:11 for Rosetta 3.5 by
1.8.4