Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
InputterStream.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=1 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/inputter/InputterStream.hh
11 /// @brief InputterStream holds a list of of streams and does VERY basic things with them
12 /// like controls whether structures are duplicated across masters
13 /// and controls whether to take the list sequentially or round robin
14 /// @author Ken Jung
15 
16 #ifndef INCLUDED_protocols_inputter_InputterStream_hh
17 #define INCLUDED_protocols_inputter_InputterStream_hh
18 
19 // Unit Headers
22 
23 // Project headers
24 #include <core/pose/Pose.fwd.hh>
25 #include <utility/lua/LuaObject.hh>
26 #include <list>
27 
28 namespace protocols {
29 namespace inputter {
30 
31 #ifdef USELUA
32 void lregister_InputterStream( lua_State * lstate );
33 #endif
34 
36  typedef std::list< InputterSP >::iterator input_itr;
37 
38  public:
39  InputterStream( int master_rank, int num_masters) :
40  master_rank_(master_rank),
41  num_masters_(num_masters){}
42 
43  virtual ~InputterStream();
44 
45  virtual bool has_pose();
46  virtual core::pose::PoseSP get_pose();
47  virtual void add_inputter( InputterSP inputter );
48  virtual void parse_def( utility::lua::LuaObject const & def );
49  virtual int size() { return inputters_.size(); }
50 
51  private:
52  std::list< InputterSP > inputters_;
55 
56 }; // end class
57 
58 } // inputter
59 } // protocols
60 
61 
62 #endif //INCLUDED_protocols_inputter_Inputter_HH