Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FragmentRmsd.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/fragment/FragmentRmsd.hh
11 /// @author Christopher Miles (cmiles@uw.edu)
12 
13 #ifndef INCLUDED_CORE_FRAGMENT_FRAGMENTRMSD_HH
14 #define INCLUDED_CORE_FRAGMENT_FRAGMENTRMSD_HH
15 
16 // Unit header
18 
19 // External headers
20 #include <boost/unordered/unordered_map.hpp>
21 
22 // Utility headers
23 #include <utility/pointer/ReferenceCount.hh>
24 
25 // Project headers
26 #include <core/types.hh>
30 #include <core/pose/Pose.fwd.hh>
31 
32 namespace core {
33 namespace fragment {
34 
36  typedef boost::unordered_map<core::Size, FrameCOP > FrameMap;
37 
38  public:
39  ///@brief Automatically generated virtual destructor for class deriving directly from ReferenceCount
40  virtual ~FragmentRmsd();
41  FragmentRmsd(FragSetCOP fragments);
42 
43  /// @brief Returns the kth fragment at the specified position
44  /// in the fragment library.
45  FragDataCOP fragment(core::Size position, core::Size k) const;
46 
47  /// @brief Returns the RMSD of the kth fragment at the specified position
48  /// in the fragment library and pose.
49  core::Real rmsd(core::Size position, core::Size k, const core::pose::Pose& reference) const;
50 
51 
52  protected:
53  /// @brief Returns the position'th frame in the fragment library
54  FrameCOP frame(core::Size position) const;
55 
56 
57  private:
58  /// @brief Input fragment library
60 
61  /// @brief Position-indexable collection of fragments
62  mutable FrameMap frames_;
63 };
64 
65 } // namespace fragment
66 } // namespace core
67 
68 #endif // CORE_FRAGMENT_FRAGMENT_RMSD_HH_