Rosetta 3.5
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
protocols
wum
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
23
#include <
protocols/wum/WorkUnitManager.hh
>
24
#include <
protocols/wum/MPI_WorkUnitManager.hh
>
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
42
class
MPI_WorkUnitManager_Slave
:
public
MPI_WorkUnitManager
{
43
public
:
44
MPI_WorkUnitManager_Slave
(
core::Size
my_master );
45
46
virtual
~MPI_WorkUnitManager_Slave
(){}
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
60
core::Size
get_my_master
(){
return
my_master_
; };
61
62
private
:
63
const
core::Size
my_master_
;
64
};
65
66
67
}
68
}
69
70
#endif
71
Generated on Sat Jun 1 2013 12:25:17 for Rosetta 3.5 by
1.8.4