Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
pool_util.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
11 /// @brief
12 /// @author
13 
14 #ifndef INCLUDED_protocols_canonical_sampling_mc_convergence_checks_pool_util_hh
15 #define INCLUDED_protocols_canonical_sampling_mc_convergence_checks_pool_util_hh
16 
17 #include <ObjexxFCL/FArray2D.hh>
18 #include <utility/vector1.hh>
19 #include <core/types.hh>
20 
21 namespace protocols {
22 namespace canonical_sampling {
23 namespace mc_convergence_checks {
24 
25  typedef ObjexxFCL::FArray2D<double> FArray2D_double;
27 
28  struct DataBuffer {
29  public:
30  DataBuffer();
31 
32  ~DataBuffer();
33 
34  void
35  setup( int num_slave_nodes, int nresidues, int nlevels );
36 
37  void
38  address_to_buf( utility::vector1< core::Size > & address, int* buf, core::Size start_index );
39 
40  void
41  buf_to_address( utility::vector1< core::Size > & address, int* buf, core::Size start_index );
42 
43  void
45  FArray2D_double const& coords,
46  double* coord_buf );
47 
48  void
50  core::Size num_to_add,
51  FArray2D_double const& coords,
52  double* coord_buf );
53 
54  void
56  FArray2D_double & coords,
57  double* coord_buf );
58 
59  void
61  core::Size num_to_add,
62  FArray2D_double & coords,
63  double* coord_buf);
64 
72  int* int_buf1_;
74  //structures for dealing with neighbors
85  int* finished_;
86 
87  };
88 
89 
90 
91 }
92 }
93 }
94 
95 #endif