Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
19 
20 #include <utility/vector1.hh>
21 
22 namespace protocols {
23 namespace loophash {
24 
25 
29 
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 
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 
53 
54  void set_defaults();
55  private:
57 };
58 
59 
60 
61 
62 
63 }
64 }
65 
66 #endif
67