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
pack
rotamer_set
WaterAnchorInfo.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
/// @author
13
14
#include <
core/types.hh
>
15
#include <
core/chemical/AA.hh
>
16
#include <
core/chemical/ResidueType.hh
>
17
18
#include <
core/pack/rotamer_set/WaterAnchorInfo.hh
>
19
20
// utility headers
21
#include <string>
22
23
#include <utility/vector1.hh>
24
25
26
namespace
core {
27
namespace
pack {
28
namespace
rotamer_set {
29
30
/// @details Auto-generated virtual destructor
31
WaterAnchorInfo::~WaterAnchorInfo
() {}
32
33
Size
34
WaterAnchorInfo::anchor_residue
()
const
{
35
return
anchor_residue_
;
36
}
37
38
void
39
WaterAnchorInfo::anchor_residue
(
Size
const
rsd ) {
40
anchor_residue_
= rsd;
41
}
42
43
bool
44
WaterAnchorInfo::attaches_to_residue_type
(
ResidueType
45
const
& type )
const
{
46
return
type.
aa
() ==
aa_
&& type.
has
(
anchor_atom_name_
);
47
}
48
49
Size
50
WaterAnchorInfo::anchor_atom
(
ResidueType
const
& type
51
)
const
{
52
assert(
attaches_to_residue_type
( type ) );
53
return
type.
atom_index
(
anchor_atom_name_
);
54
}
55
56
void
57
WaterAnchorInfo::anchor_atom
(
std::string
const
& name
58
) {
59
anchor_atom_name_
= name;
60
}
61
62
void
63
WaterAnchorInfo::aa
(
AA
const
& aa_in ) {
64
aa_
= aa_in;
65
}
66
67
Size
68
WaterAnchorInfo::nstep
()
const
{
69
return
nstep_
;
70
}
71
72
void
73
WaterAnchorInfo::nstep
(
Size
const
nstep_in ) {
74
nstep_
= nstep_in;
75
}
76
77
}
// namespace rotamer_set
78
}
// namespace pack
79
}
// namespace core
Generated on Sat Jun 1 2013 11:33:47 for Rosetta 3.5 by
1.8.4