Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SymSlideInfo.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 // This file is made available under the Rosetta Commons license.
5 // See http://www.rosettacommons.org/license
6 // (C) 199x-2007 University of Washington
7 // (C) 199x-2007 University of California Santa Cruz
8 // (C) 199x-2007 University of California San Francisco
9 // (C) 199x-2007 Johns Hopkins University
10 // (C) 199x-2007 University of North Carolina, Chapel Hill
11 // (C) 199x-2007 Vanderbilt University
12 
13 /// @brief Class to store ingformation about symmetrical dofs
14 /// @file core/conformation/symmetry/SymSlideInfo.cc
15 /// @author Ingemar Andre
16 
17 // Unit headers
19 
20 // Utility header
21 // AUTO-REMOVED #include <utility/exit.hh>
22 // AUTO-REMOVED #include <utility/io/izstream.hh>
23 // AUTO-REMOVED #include <utility/string_util.hh>
24 
25 #include <utility/vector1.hh>
26 #include <algorithm>
27 
28 namespace core {
29 namespace conformation {
30 namespace symmetry {
31 
33 {
36  SlideCriteriaVal_ = "AUTOMATIC";
37 }
38 
40 {
45 }
46 
47  SymSlideInfo &
53  return *this;
54  }
55 
57 
58  // setter functions
60  {
61  slide_type_ = slide_type;
62  }
63 
65  {
66  score_criteria_ = score_criteria;
67  }
68 
70  {
71  SlideCriteriaVal_ = SlideCriteriaVal;
72  }
73 
74  void SymSlideInfo::set_slide_order( std::vector<core::Size> slide_order )
75  {
76  slide_order_ = slide_order;
77  }
78 
79 // get functions
80  SlideType
82  {
83  return slide_type_;
84  }
85 
88  {
89  return score_criteria_;
90  }
91 
94  {
95  return SlideCriteriaVal_;
96  }
97 
98  std::vector<core::Size>
100  {
101  return slide_order_;
102  }
103 
104 
105 bool
107  SymSlideInfo const & a,
108  SymSlideInfo const & b
109 ) {
110  return
111  (a.slide_type_ == b.slide_type_) &&
112  (a.score_criteria_ == b.score_criteria_) &&
114  std::equal(
115  a.slide_order_.begin(), a.slide_order_.end(), b.slide_order_.begin());
116 }
117 
118 bool
120  SymSlideInfo const & a,
121  SymSlideInfo const & b
122 ) {
123  return !(a == b);
124 }
125 
126 
127 } // symmetry
128 } // conformation
129 } // core