Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ABEGO_SS_Map.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 protocols/frag_picker/quota/ABEGO_SS_Map.hh
11 /// @brief class for a quota pool based on secondary structure prediction and ABEGO torsion bin classification
12 /// @author Dominik Gront (dgront@chem.uw.edu.pl)
13 
14 #ifndef INCLUDED_protocols_frag_picker_quota_ABEGO_SS_Map_hh
15 #define INCLUDED_protocols_frag_picker_quota_ABEGO_SS_Map_hh
16 
18 // AUTO-REMOVED #include <protocols/frag_picker/quota/QuotaPool.hh>
19 
20 // package headers
21 // AUTO-REMOVED #include <protocols/frag_picker/BoundedCollector.hh>
24 // AUTO-REMOVED #include <protocols/frag_picker/CommonFragmentComparators.hh>
25 // AUTO-REMOVED #include <core/fragment/SecondaryStructure.hh>
26 
27 // utility headers
28 #include <core/types.hh>
29 #include <utility/vector1.hh>
30 #include <utility/pointer/owning_ptr.hh>
31 
32 // C++ headers
33 #include <string>
34 
35 //Auto Headers
36 namespace protocols {
37 namespace frag_picker {
38 namespace quota {
39 
40 
42 Size abego_index(char);
43 Size ss_index(char);
44 
45 /// @brief represents a single pool used by quota selector
47 public:
48  ///@brief Automatically generated virtual destructor for class deriving directly from ReferenceCount
49  virtual ~ABEGO_SS_Map();
50 
51  ABEGO_SS_Map(utility::vector1< std::pair<Size,Size> >);
52 
53  inline bool check_status(char ss_type,char abego_type) const {
54 
55  return ss_abego_types_[ss_index(ss_type)][abego_index(abego_type)];
56  }
57 
58  inline bool check_status(char ss_type,Size abego_type) const {
59 
60  return ss_abego_types_[ss_index(ss_type)][abego_type];
61  }
62 
63  inline bool check_status(Size ss_type,char abego_type) const {
64 
65  return ss_abego_types_[ss_type][abego_index(abego_type)];
66  }
67 
68  inline bool check_status(std::pair<Size,Size> bin_index) const {
69  return ss_abego_types_[bin_index.first][bin_index.second];
70  }
71 
72  inline void set_status(std::pair<Size,Size> bin_index,bool new_status) {
73  ss_abego_types_[bin_index.first][bin_index.second] = new_status;
74  }
75 
77 
78  char abego_char(Size abego_bin) { return all_abego_[abego_bin]; }
79 
80 private:
81  static char all_abego_[];
82  static char all_ss_[];
84 };
85 
86 } // quota
87 } // frag_picker
88 } // protocols
89 
90 
91 #endif /* INCLUDED_protocols_frag_picker_quota_ABEGO_SS_Map_HH */