Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MinimizationData.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/scoring/MinimizationData.hh
11 /// @brief A container class for use by certain EnergyMethods during derivative and
12 // score function evaluation during minimization routines.
13 /// @author Andrew Leaver-Fay
14 
15 #ifndef INCLUDED_core_scoring_MinimizationData_hh
16 #define INCLUDED_core_scoring_MinimizationData_hh
17 
18 // Unit headers
20 
21 // Project headers
22 #include <basic/datacache/CacheableData.fwd.hh>
23 #ifdef WIN32
24 #include <basic/datacache/CacheableData.hh>
25 #endif
26 
27 // Utility headers
28 #include <utility/pointer/ReferenceCount.hh>
29 #include <utility/vector1.hh>
30 
31 namespace core {
32 namespace scoring {
33 
38  n_min_single_data = hbond_res_data // keep this guy last
39 };
40 
48  n_min_pair_data = hbond_respair_data // keep this guy last
49 };
50 
51 
53 {
54 public:
55  typedef basic::datacache::CacheableData CacheableData;
56  typedef basic::datacache::CacheableDataOP CacheableDataOP;
57  typedef basic::datacache::CacheableDataCOP CacheableDataCOP;
58 
59 public:
63  ResSingleMinimizationData const & operator = ( ResSingleMinimizationData const & ); // deep copy
64 
65  void set_data( min_single_data index, CacheableDataOP data );
68  CacheableData & get_data_ref( min_single_data index ) { return * data_cache_[ index ]; }
69  CacheableData const & get_data_ref( min_single_data index ) const { return * data_cache_[ index ]; }
70 
71 private:
72 
73 private:
75 
76 };
77 
79 {
80 public:
81  typedef basic::datacache::CacheableData CacheableData;
82  typedef basic::datacache::CacheableDataOP CacheableDataOP;
83  typedef basic::datacache::CacheableDataCOP CacheableDataCOP;
84 
85 public:
87  virtual ~ResPairMinimizationData();
88  ResPairMinimizationData( ResPairMinimizationData const & ); // deep copy
89  ResPairMinimizationData const & operator = ( ResPairMinimizationData const & ); // deep copy
90 
91  void set_data( min_pair_data index, CacheableDataOP );
94  CacheableData & get_data_ref( min_pair_data index ) { return * data_cache_[ index ]; }
95  CacheableData const & get_data_ref( min_pair_data index ) const { return * data_cache_[ index ]; }
96 
97 
98 private:
100 };
101 
102 }
103 }
104 
105 #endif