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
core
import_pose
pose_stream
ExtendedPoseInputStream.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
11
/// @brief
12
/// @author James Thompson
13
14
// libRosetta headers
15
16
#include <
core/types.hh
>
17
#include <
core/chemical/ResidueTypeSet.fwd.hh
>
18
#include <
core/pose/Pose.hh
>
19
20
#include <
core/import_pose/pose_stream/PoseInputStream.hh
>
21
#include <
core/import_pose/pose_stream/ExtendedPoseInputStream.hh
>
22
23
// C++ headers
24
#include <string>
25
26
#include <utility/exit.hh>
27
28
#include <
core/pose/annotated_sequence.hh
>
29
#include <utility/vector1.hh>
30
31
32
33
namespace
core {
34
namespace
import_pose {
35
namespace
pose_stream {
36
37
bool
ExtendedPoseInputStream::has_another_pose
() {
38
return
(
current_n_
<=
ntimes_
);
39
}
40
41
void
ExtendedPoseInputStream::reset
() {
42
current_n_
= 1;
43
}
44
45
void
ExtendedPoseInputStream::fill_pose
(
46
core::pose::Pose
& pose,
47
core::chemical::ResidueTypeSet
const
& residue_set
48
) {
49
// check to make sure that we have more poses!
50
if
( !
has_another_pose
() ) {
51
utility_exit_with_message(
52
"ExtendedPoseInputStream: called fill_pose, but I have no more Poses!"
53
);
54
}
55
56
core::pose::make_pose_from_sequence
(
57
pose,
58
seq_
,
59
residue_set
60
);
61
62
for
(
Size
pos = 1; pos <= pose.
total_residue
(); pos++ ) {
63
pose.
set_phi
( pos, -150 );
64
pose.
set_psi
( pos, 150 );
65
pose.
set_omega
( pos, 180 );
66
}
67
68
++
current_n_
;
69
}
// fill_pose
70
71
void
ExtendedPoseInputStream::fill_pose
(
72
core::pose::Pose
&
73
) {
74
utility_exit_with_message(
75
"ExtendedPoseInputStream: called fill_pose, but without ResidueType Set"
76
);
77
}
78
79
}
// pose_stream
80
}
// import_pose
81
}
// core
Generated on Sat Jun 1 2013 11:32:52 for Rosetta 3.5 by
1.8.4