Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Policy.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/nonlocal/Policy.hh
11 /// @author Christopher Miles (cmiles@uw.edu)
12 
13 #ifndef INCLUDED_PROTOCOLS_NONLOCAL_POLICY_HH
14 #define INCLUDED_PROTOCOLS_NONLOCAL_POLICY_HH
15 
16 // Unit headers
18 
19 // Utility headers
20 #include <utility/pointer/ReferenceCount.hh>
21 
22 // Project headers
23 #include <core/types.hh>
24 #include <core/fragment/FragSet.hh>
26 #include <core/pose/Pose.fwd.hh>
27 
28 #include <utility/vector1.hh>
29 
30 
31 namespace protocols {
32 namespace nonlocal {
33 
34 /// @class An abstract base class that defines the interface for choosing a
35 /// fragment from set of possibilities. This class is based on the observation
36 /// that fragment insertion methods differ primarily in the manner in which they
37 /// choose from among a set of possibilities.
40 
41  public:
42  /// @brief Provides derived classes with the opportunity to precompute various
43  /// properties of the fragment set from which they will have to make choices.
44  explicit Policy(FragSetCOP fragments) : fragments_(fragments) {}
45 
46  /// @brief Selects a single fragment from a set of possibilities given the
47  /// current status of the pose.
48  virtual core::Size choose(const core::fragment::Frame& frame,
49  const core::pose::Pose& pose) = 0;
50 
51  // -- Accessors -- //
53  return fragments_;
54  }
55 
56  private:
58 };
59 
60 } // namespace nonlocal
61 } // namespace protocols
62 
63 #endif // PROTOCOLS_NONLOCAL_POLICY_HH_