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
loops
loops_definers
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/loops/loops_definers/util.cc
11
/// @brief Utility functions useful in LoopDefiner classes.
12
/// @authors Matthew O'Meara (mattjomeara@gmail.com)
13
14
#include <
protocols/loops/loops_definers/LoopsDefiner.hh
>
15
#include <
protocols/loops/Loop.hh
>
16
#include <
protocols/loops/Loops.hh
>
17
#include <
protocols/loops/util.hh
>
18
19
20
#include <utility/tag/Tag.hh>
21
#include <
protocols/moves/DataMap.hh
>
22
#include <
core/pose/Pose.hh
>
23
24
namespace
protocols {
25
namespace
loops {
26
namespace
loops_definers {
27
28
29
30
LoopsOP
31
load_loop_definitions
(
32
utility::tag::TagPtr
const
tag,
33
protocols::moves::DataMap
const
& data,
34
core::pose::Pose
const
& pose
35
) {
36
using namespace
loops;
37
using namespace
loops_definers;
38
39
std::string
loops_str( tag->getOption<
std::string
>(
"loops"
) );
40
41
if
(data.
has
(
"loops_definers"
, loops_str)){
42
LoopsDefinerOP
loops_definer(
43
data.
get
<
LoopsDefiner
* >(
"loops_definers"
, loops_str));
44
return
new
Loops
(loops_definer->apply(pose));
45
}
else
{
46
return
loops_from_string
(loops_str, pose );
47
}
48
49
return
0;
50
51
}
52
53
54
}
// namespace
55
}
// namespace
56
}
// namespace
Generated on Sat Jun 1 2013 11:32:05 for Rosetta 3.5 by
1.8.4