Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MultiStatePacker.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 MultiStatePacker.hh
11 /// @brief
12 /// @author ashworth
13 
14 #ifndef INCLUDED_protocols_multistate_design_MultiStatePacker_hh
15 #define INCLUDED_protocols_multistate_design_MultiStatePacker_hh
16 
22 
23 #include <core/chemical/AA.hh>
24 
25 #include <core/types.hh>
26 #include <utility/vector0.fwd.hh>
27 #include <utility/vector1.fwd.hh>
28 
29 // AUTO-REMOVED #include <vector>
30 #include <iosfwd>
31 
32 #include <utility/vector1.hh>
33 
34 
35 namespace protocols {
36 namespace multistate_design {
37 
38 // the element to be stored by genetic_algorithm::Entity<T> for multistate optimization of residue sequence
40 public:
43 
44 public:
45  PosType();
46  virtual ~PosType();
48  PosType( std::string word );
49 
50  virtual EntityElementOP clone();
52  virtual Size hash() const;
53  virtual bool operator < ( EntityElement const & rhs ) const;
54  virtual bool operator == ( EntityElement const & rhs ) const;
55  virtual EntityElement const & operator = ( EntityElement const & rhs );
56  virtual std::string to_string() const;
57  virtual std::string name() const; // Each entity element must have a distinct name
58 
59  //core::Size index() const; -- base class defines this now
60  core::chemical::AA type() const;
61 
62 private:
63  //core::Size index_; -- base class defines this now
65 };
66 
68 public:
70 public:
71  virtual ~PosTypeCreator();
72  virtual std::string widget_name() const;
73  virtual EntityElementOP new_entity( std::string const & word );
74 };
75 
76 ////////////////////////////////////////////////////////////////////////////////////////////////////
78 
79 public:
82  num_packs_(1)
83  {}
84 
85  virtual ~MultiStatePacker(){}
86 
89  num_packs_(num_packs)
90  {}
91 
92  virtual void single_state_design( bool restrict_to_canonical = true );
93  virtual core::Real evaluate(
95  core::Size single_state_num
96  );
97 
98  virtual void set_num_packs( core::Size num ) { num_packs_ = num; }
99 
100 private:
102 };
103 
104 void
106  utility::vector0< int > & rot_to_pack,
107  PackingState const & state,
108  genetic_algorithm::EntityElements const & seq // Each EntityElement must be castable to PosType.
109 );
110 
111 void
113  PackingState const & state,
114  utility::vector0< int > & rot_to_pack
115 );
116 
117 } // namespace multistate_design
118 } // namespace protocols
119 
120 #endif