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
moves
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
21
#include <
protocols/filters/Filter.hh
>
22
23
// Package headers
24
#include <
protocols/moves/Mover.hh
>
25
#include <
protocols/moves/DataMap.fwd.hh
>
26
27
#include <utility/vector0.hh>
28
#include <utility/vector1.hh>
29
30
31
namespace
protocols {
32
namespace
moves {
33
34
protocols::moves::MoverOP
find_mover_or_die
(
const
std::string
& mover_name,
35
const
utility::tag::TagPtr
,
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
44
protocols::filters::FilterOP
find_filter_or_die
(
const
std::string
& filter_name,
45
const
utility::tag::TagPtr
,
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
Generated on Sat Jun 1 2013 11:32:08 for Rosetta 3.5 by
1.8.4