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
loophash
WorkUnit_LoopHash.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/loophash/WorkUnit_LoopHash.hh
11
/// @brief
12
/// @author Mike Tyka
13
14
#ifndef INCLUDED_protocols_loophash_WorkUnit_LoopHash_hh
15
#define INCLUDED_protocols_loophash_WorkUnit_LoopHash_hh
16
17
#include <
protocols/wum/WorkUnitBase.hh
>
18
#include <
protocols/loophash/LoopHashLibrary.hh
>
19
20
#include <utility/vector1.hh>
21
22
namespace
protocols {
23
namespace
loophash {
24
25
26
class
WorkUnit_LoopHash
;
27
typedef
utility::pointer::owning_ptr< WorkUnit_LoopHash >
WorkUnit_LoopHashOP
;
28
typedef
utility::pointer::owning_ptr< WorkUnit_LoopHash const >
WorkUnit_LoopHashCOP
;
29
30
class
WorkUnit_LoopHash
:
public
protocols::wum::WorkUnit_SilentStructStore
{
31
public
:
32
// initialize only via this
33
WorkUnit_LoopHash
(
core::Size
start_ir=0,
core::Size
end_ir=0,
core::Size
ssid=0 );
34
35
// @brief Run the workunit - overloaded by children of this class
36
virtual
void
run
();
37
38
virtual
protocols::wum::WorkUnitBaseOP
clone
()
const
{
39
runtime_assert(
library_
);
40
return
new
WorkUnit_LoopHash
( *
this
);
41
}
42
43
void
init_from_cmd
(
const
core::Size
mpi_rank
);
44
void
set_start
(
core::Size
start_ir ){
header
.
extra_data_1_
= start_ir; }
45
void
set_end
(
core::Size
end_ir ){
header
.
extra_data_2_
= end_ir; }
46
void
set_ssid
(
core::Size
ssid ){
header
.
extra_data_3_
= ssid; }
47
48
protected
:
49
50
core::Size
get_start
(){
return
header
.
extra_data_1_
; }
51
core::Size
get_end
(){
return
header
.
extra_data_2_
; }
52
core::Size
get_ssid
(){
return
header
.
extra_data_3_
; }
53
54
void
set_defaults
();
55
private
:
56
LoopHashLibraryOP
library_
;
57
};
58
59
60
61
62
63
}
64
}
65
66
#endif
67
Generated on Sat Jun 1 2013 11:57:27 for Rosetta 3.5 by
1.8.4