Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SingleState.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 SingleState.cc
11 /// @brief
12 /// @author ashworth
13 
15 
16 #include <core/pose/Pose.hh>
18 
19 #include <utility/vector1.hh>
20 
21 
22 namespace protocols {
23 namespace multistate_design {
24 
25 ////////////////////////////////////////////////////////////////////////////////////////////////////
27  : utility::pointer::ReferenceCount(),
28  pose_p_(0), is_positive_state_(false), best_score_(0.), fitness_function_(NULL)
29 {
31 }
32 
34 
35 SingleState::SingleState( core::pose::Pose const & pose, bool is_positive )
36  : utility::pointer::ReferenceCount(),
37  pose_p_(0), is_positive_state_( is_positive ), best_score_(0.), fitness_function_(NULL)
38 {
40  *pose_p_ = pose;
42 }
43 
45  : utility::pointer::ReferenceCount(), pose_p_(0), is_positive_state_(false), best_score_(0.), fitness_function_(NULL)
46 {
48  *pose_p_ = other.pose();
50  best_score_ = other.best_score();
52 }
53 
54 core::pose::Pose const & SingleState::pose() const { return *pose_p_; }
56 
57 } // namespace multistate_design
58 } // namespace protocols