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
multistate_design
PackingState.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 PackingState.cc
11
/// @brief
12
/// @author ashworth
13
14
#include <
protocols/multistate_design/PackingState.hh
>
15
16
#include <
core/pack/pack_rotamers.hh
>
17
#include <
core/pack/interaction_graph/InteractionGraphBase.hh
>
18
#include <
core/pack/rotamer_set/RotamerSets.hh
>
19
#include <
core/pack/task/PackerTask.hh
>
20
#ifdef WIN32
21
#include <
core/scoring/ScoreFunction.hh
>
22
#endif
23
// AUTO-REMOVED #include <core/pose/Pose.hh>
24
25
// Utility headers
26
#include <utility/vector0.hh>
27
28
#include <utility/vector1.hh>
29
30
31
namespace
protocols {
32
namespace
multistate_design {
33
34
using namespace
core::pack::rotamer_set;
35
using namespace
core::pack::task;
36
using namespace
core::pack::interaction_graph;
37
using
core::pack::pack_rotamers_setup
;
38
using
core::pack::pack_rotamers_run
;
39
40
////////////////////////////////////////////////////////////////////////////////////////////////////
41
PackingState::PackingState
()
42
:
SingleState
(),
43
ptask_p_(0),
44
rotamersets_p_(0),
45
ig_p_(0)
46
{}
47
48
PackingState::PackingState
(
core::pose::Pose
const
& pose,
bool
is_positive )
49
:
SingleState
( pose, is_positive ),
50
ptask_p_(0),
51
rotamersets_p_(0),
52
ig_p_(0)
53
{}
54
55
PackingState::~PackingState
() {}
56
57
PackerTaskCOP
PackingState::ptask
()
const
{
return
ptask_p_
; }
58
RotamerSetsCOP
PackingState::rotamersets
()
const
{
return
rotamersets_p_
; }
59
InteractionGraphBaseCOP
PackingState::ig
()
const
{
return
ig_p_
; }
60
// protected (non-const)
61
RotamerSetsOP
PackingState::rotamersets
() {
return
rotamersets_p_
; }
62
InteractionGraphBaseOP
PackingState::ig
() {
return
ig_p_
; }
63
64
void
65
PackingState::create_packer_data
(
66
core::scoring::ScoreFunctionCOP
scorefxn,
67
PackerTaskCOP
ptask
68
)
69
{
70
ptask_p_
=
ptask
;
71
rotamersets_p_
=
new
RotamerSets
();
72
assert( scorefxn &&
ptask_p_
&&
rotamersets_p_
);
73
pack_rotamers_setup
(
nonconst_pose
(), *scorefxn,
ptask_p_
,
rotamersets_p_
,
ig_p_
);
74
}
75
76
void
77
PackingState::share_packer_data_from
(
PackingState
& other )
78
{
79
assert( other.
ptask
() && other.
rotamersets
() && other.
ig
() );
80
ptask_p_
= other.
ptask
();
81
rotamersets_p_
= other.
rotamersets
();
82
ig_p_
= other.
ig
();
83
}
84
85
void
86
PackingState::run_packer
(
utility::vector0<int>
const
& rot_to_pack )
87
{
88
assert(
ptask_p_
&&
rotamersets_p_
&&
ig_p_
);
89
pack_rotamers_run
(
nonconst_pose
(),
ptask_p_
,
rotamersets_p_
,
ig_p_
, rot_to_pack );
90
}
91
92
}
// namespace multistate_design
93
}
// namespace protocols
Generated on Sat Jun 1 2013 12:00:45 for Rosetta 3.5 by
1.8.4