Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PositionConservedResiduesStore.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/pose/datacache/PositionConservedResiduesStore.hh
11 /// @author Christopher Miles (cmiles@uw.edu)
12 
13 #ifndef INCLUDED_CORE_POSE_DATACACHE_POSITIONCONSERVEDRESIDUESSTORE_HH
14 #define INCLUDED_CORE_POSE_DATACACHE_POSITIONCONSERVEDRESIDUESSTORE_HH
15 
16 // Unit header
18 
19 // External headers
20 #include <boost/unordered/unordered_map.hpp>
21 
22 // Utility headers
23 #include <basic/datacache/CacheableData.hh>
24 
25 // Project headers
26 #include <core/types.hh>
27 
28 namespace core {
29 namespace pose {
30 namespace datacache {
31 
32 /// @class A cacheable container for storing/retrieving positional conservation
33 /// data about each residue. Once stored in a pose, data can be retrieved in the
34 /// following manner:
35 ///
36 /// #include <core/pose/util.hh>
37 /// bool is_conserved = core::pose::is_position_conserved_residue(pose, residue)
38 //
39 class PositionConservedResiduesStore : public basic::datacache::CacheableData {
40  typedef boost::unordered_map<core::Size, bool> ConservationMap;
41 
42  public:
43  /// @brief Default constructor
45 
46  /// @brief Creates a copy of this instance
47  basic::datacache::CacheableDataOP clone() const;
48 
49  /// @brief Returns true if <residue> is positionally conserved, false otherwise
50  bool is_conserved(core::Size residue) const;
51 
52  /// @brief Updates the positional conservation of <residue>
53  void set_conserved(core::Size residue, bool conserved);
54 
55  private:
56  /// @brief Associates real-valued structural conservation scores with residues
58 };
59 
60 } // namespace datacache
61 } // namespace pose
62 } // namespace core
63 
64 #endif // CORE_POSE_DATACACHE_POSITIONCONSERVEDRESIDUESSTORE_HH_