Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PackingState.cc
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 PackingState.cc
11 /// @brief
12 /// @author ashworth
13 
15 
20 #ifdef WIN32
22 #endif
23 // AUTO-REMOVED #include <core/pose/Pose.hh>
24 
25 // Utility headers
26 #include <utility/vector0.hh>
27 
28 #include <utility/vector1.hh>
29 
30 
31 namespace protocols {
32 namespace multistate_design {
33 
34 using namespace core::pack::rotamer_set;
35 using namespace core::pack::task;
36 using namespace core::pack::interaction_graph;
39 
40 ////////////////////////////////////////////////////////////////////////////////////////////////////
42  : SingleState(),
43  ptask_p_(0),
44  rotamersets_p_(0),
45  ig_p_(0)
46 {}
47 
48 PackingState::PackingState( core::pose::Pose const & pose, bool is_positive )
49  : SingleState( pose, is_positive ),
50  ptask_p_(0),
51  rotamersets_p_(0),
52  ig_p_(0)
53 {}
54 
56 
60 // protected (non-const)
63 
64 void
67  PackerTaskCOP ptask
68 )
69 {
70  ptask_p_ = ptask;
72  assert( scorefxn && ptask_p_ && rotamersets_p_ );
74 }
75 
76 void
78 {
79  assert( other.ptask() && other.rotamersets() && other.ig() );
80  ptask_p_ = other.ptask();
81  rotamersets_p_ = other.rotamersets();
82  ig_p_ = other.ig();
83 }
84 
85 void
87 {
88  assert( ptask_p_ && rotamersets_p_ && ig_p_ );
90 }
91 
92 } // namespace multistate_design
93 } // namespace protocols