Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
19 
20 /// Package headers
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 
41 
43  parent(),
44  bb_grid_( other.bb_grid_ )
45 {}
46 
48 {}
49 
50 
51 void
53  BumpGridCOP bbgrid
54 )
55 {
56  bb_grid_ = bbgrid;
57 }
58 
59 void
61  OccupiedSpaceHashCOP occ_space
62 )
63 {
64  space_ = occ_space;
65 }
66 
67 void
69  ActiveSiteGridCOP active_site_grid
70 )
71 {
73 }
74 
75 bool
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
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
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 }