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
match
downstream
DownstreamBuilder.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
// :noTabs=false:tabSize=4:indentSize=4:
4
//
5
// (c) Copyright Rosetta Commons Member Institutions.
6
// (c) This file is part of the Rosetta software suite and is made available under license.
7
// (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
8
// (c) For more information, see http://www.rosettacommons.org. Questions about this can be
9
// (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
10
11
/// @file protocols/match/downstream/DownstreamBuilder.cc
12
/// @brief
13
/// @author Alex Zanghellini (zanghell@u.washington.edu)
14
/// @author Andrew Leaver-Fay (aleaverfay@gmail.com), porting to mini
15
/// @author Florian Richter (floric@u.washington.edu)
16
17
/// Unit headers
18
#include <
protocols/match/downstream/DownstreamBuilder.hh
>
19
20
/// Package headers
21
#include <
protocols/match/BumpGrid.hh
>
22
#include <
protocols/match/OccupiedSpaceHash.hh
>
23
#include <
protocols/match/downstream/ActiveSiteGrid.hh
>
24
#include <
protocols/match/downstream/RigidLigandBuilder.hh
>
25
#include <
protocols/match/downstream/LigandConformerBuilder.hh
>
26
// AUTO-REMOVED #include <protocols/match/downstream/LigandConformer.hh> // REQUIRED FOR WINDOWS
27
28
//Project header
29
#include <basic/Tracer.hh>
30
31
#include <utility/vector1.hh>
32
33
34
namespace
protocols {
35
namespace
match
{
36
namespace
downstream {
37
38
static
basic::Tracer
TR
(
"protocols.match.downstream.SecondaryMatcherToDownstreamResidue"
);
39
40
DownstreamBuilder::DownstreamBuilder
() :
parent
(), bb_grid_( 0 ) {}
41
42
DownstreamBuilder::DownstreamBuilder
(
DownstreamBuilder
const
& other ) :
43
parent
(),
44
bb_grid_( other.bb_grid_ )
45
{}
46
47
DownstreamBuilder::~DownstreamBuilder
()
48
{}
49
50
51
void
52
DownstreamBuilder::set_bb_grid
(
53
BumpGridCOP
bbgrid
54
)
55
{
56
bb_grid_
=
bbgrid
;
57
}
58
59
void
60
DownstreamBuilder::set_occupied_space_hash
(
61
OccupiedSpaceHashCOP
occ_space
62
)
63
{
64
space_
=
occ_space
;
65
}
66
67
void
68
DownstreamBuilder::set_active_site_grid
(
69
ActiveSiteGridCOP
active_site_grid
70
)
71
{
72
active_site_grid_
=
active_site_grid
;
73
}
74
75
bool
76
DownstreamBuilder::compatible
(
77
Hit
const
& my_hit,
78
DownstreamBuilder
const
& other,
79
Hit
const
& other_hit,
80
bool
first_dispatch
81
)
const
82
{
83
if
( ! first_dispatch ) {
84
utility_exit_with_message(
"CRITICAL ERROR: DownstreamBuilder::compatible() double-dispatch failure"
);
85
}
86
return
other.
compatible
( other_hit, *
this
, my_hit,
false
);
87
}
88
89
bool
90
DownstreamBuilder::compatible
(
91
Hit
const
& my_hit,
92
RigidLigandBuilder
const
& other,
93
Hit
const
& other_hit,
94
bool
first_dispatch
95
)
const
96
{
97
if
( ! first_dispatch ) {
98
utility_exit_with_message(
"CRITICAL ERROR: DownstreamBuilder::compatible() double-dispatch failure"
);
99
}
100
return
other.
compatible
( other_hit, *
this
, my_hit,
false
);
101
}
102
103
bool
104
DownstreamBuilder::compatible
(
105
Hit
const
& my_hit,
106
LigandConformerBuilder
const
& other,
107
Hit
const
& other_hit,
108
bool
first_dispatch
109
)
const
110
{
111
if
( ! first_dispatch ) {
112
utility_exit_with_message(
"CRITICAL ERROR: DownstreamBuilder::compatible() double-dispatch failure"
);
113
}
114
return
other.
compatible
( other_hit, *
this
, my_hit,
false
);
115
}
116
117
}
118
}
119
}
Generated on Sat Jun 1 2013 11:59:24 for Rosetta 3.5 by
1.8.4