Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
util.cc
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/moves/util.cc
11 /// @author Christopher Miles (cmiles@uw.edu)
12 
13 // Unit header
14 #include <protocols/moves/util.hh>
15 
16 // Utility headers
17 #include <utility/exit.hh>
18 // AUTO-REMOVED #include <utility/tag/Tag.hh>
19 
20 // Project headers
22 
23 // Package headers
24 #include <protocols/moves/Mover.hh>
26 
27 #include <utility/vector0.hh>
28 #include <utility/vector1.hh>
29 
30 
31 namespace protocols {
32 namespace moves {
33 
36  const protocols::moves::Movers_map& movers) {
37  protocols::moves::Movers_map::const_iterator i = movers.find(mover_name);
38  if (i == movers.end())
39  utility_exit_with_message(mover_name + " not found in Movers_map");
40 
41  return i->second;
42 }
43 
46  const protocols::filters::Filters_map& filters) {
47  protocols::filters::Filters_map::const_iterator i = filters.find(filter_name);
48  if (i == filters.end())
49  utility_exit_with_message(filter_name + " not found in Filters_map");
50 
51  return i->second;
52 }
53 
54 } // namespace moves
55 } // namespace protocols