Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RotamerLinks.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/pack/rotamer_set/RotamerSet.fwd.hh
11 /// @brief Residue set class forward declarations
12 /// @author Andrew Leaver-Fay (leaverfa@email.unc.edu)
13 
14 
15 #ifndef INCLUDED_core_pack_rotamer_set_RotamerLinks_hh
16 #define INCLUDED_core_pack_rotamer_set_RotamerLinks_hh
17 
19 
20 // Project Headers
21 #include <core/types.hh>
22 
23 // utility headers
24 #include <utility/pointer/ReferenceCount.hh>
25 #include <utility/vector1.hh>
26 
27 namespace core {
28 namespace pack {
29 namespace rotamer_set {
30 
32 
33 public:
34 
35  void
36  resize( Size const res)
37  {
38  links_.resize(res);
39  }
40 
42  get_equiv( Size const index ) const
43  {
44  utility::vector1< Size > dumb_return;
45  if (index <= links_.size())
46  return links_[index];
47  return dumb_return;
48  }
49 
50  void
51  set_equiv( Size const rs1, Size const rs2 )
52  {
53  links_[rs1].push_back(rs2);
54  }
55 
56  void
58  {
59  links_[rs1] = list;
60  }
61 
62  bool
63  has (Size index) const
64  {
65  //return true;
66  if (!links_[index].empty()){
67  return true;
68  }else{
69  return false;
70  }
71  }
72 
73 
74 private:
75 
77 };
78 
79 
80 } // namespace rotamer_set
81 } // namespace pack
82 } // namespace core
83 
84 
85 #endif //