Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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>
17 
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
32 
33 Size
35  return anchor_residue_;
36 }
37 
38 void
40  anchor_residue_ = rsd;
41 }
42 
43 bool
45 const & type ) const {
46  return type.aa() == aa_ && type.has( anchor_atom_name_ );
47 }
48 
49 Size
51 ) const {
52  assert( attaches_to_residue_type( type ) );
53  return type.atom_index( anchor_atom_name_ );
54 }
55 
56 void
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
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