Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SidechainStateAssignment.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/scmin/SidechainStateAssignment.hh
11 /// @brief Declaration for the class that holds a state assignment for an entire system under continuous sidechain optimization
12 /// @author Andrew Leaver-Fay (aleaverfay@gmail.com)
13 
14 #ifndef INCLUDED_core_pack_scmin_SidechainStateAssignment_HH
15 #define INCLUDED_core_pack_scmin_SidechainStateAssignment_HH
16 
17 // Package Headers
18 // AUTO-REMOVED #include <core/pack/scmin/AtomTreeCollection.hh>
19 
20 // utility
21 #include <utility/vector1.hh>
22 
23 #include <core/types.hh>
25 
26 
27 namespace core {
28 namespace pack {
29 namespace scmin {
30 
31 
32 /// A simple class for tracking a network state and its energy where
33 /// each sidechain's state is described by a series of chi angles.
35 public:
36  SidechainStateAssignment( Size nmoltenres );
40 
42  void assign_state( Size moltenresid, Size orig_rotid );
43  void assign_energy( Real energy );
44 
46  Size orig_rotamer_id_for_moltenres( Size moltenres ) const;
47  Real energy() const { return energy_; }
48  bool any_unassigned() const;
49  Size n_unassigned() const { return n_unassigned_; }
50 
51 private:
57 };
58 
59 
60 } // namespace scmin
61 } // namespace pack
62 } // namespace core
63 
64 #endif