Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MPI_WorkUnitManager_Slave.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 protocols/wum/MPI_WorkUnitManager_Slave.hh
11 /// @brief
12 /// @author Mike Tyka
13 
14 #ifndef INCLUDED_protocols_wum_MPI_WorkUnitManager_Slave_hh
15 #define INCLUDED_protocols_wum_MPI_WorkUnitManager_Slave_hh
16 
17 #ifdef USEMPI
18 #include <mpi.h> //keep this first
19 #else
20 #define MPI_ANY_SOURCE 0
21 #endif
22 
25 // you cannot #include yourself #include <protocols/wum/MPI_WorkUnitManager_Slave.hh>
26 #include <core/pose/Pose.fwd.hh>
27 #include <core/types.hh>
28 
29 #include <string>
30 #include <vector>
31 
32 #include <utility/vector1.hh>
33 
34 
35 
36 
37 
38 namespace protocols {
39 namespace wum {
40 
41 
43  public:
45 
47 
48  virtual void go();
49 
50  protected:
51  void init(){};
52 
53  virtual void process_inbound_wus();
54 
55  virtual void process_outbound_wus();
56 
57  /// @brief Slave: call a master to ask for more work
58  virtual void request_new_jobs();
59 
61 
62  private:
63  const core::Size my_master_;
64 };
65 
66 
67 }
68 }
69 
70 #endif
71