Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UpstreamBuilder.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/upstream/UpstreamBuilder.cc
12 /// @brief
13 /// @author Alex Zanghellini (zanghell@u.washington.edu)
14 /// @author Andrew Leaver-Fay (aleaverfay@gmail.com), porting to mini
15 
16 // Unit header
18 
19 // Package header
22 
23 #include <utility/vector1.hh>
24 
25 
26 
27 namespace protocols {
28 namespace match {
29 namespace upstream {
30 
32 
34  Hit const & my_hit,
35  ScaffoldBuildPoint const & build_point_mine,
36  UpstreamBuilder const & other,
37  Hit const & other_hit,
38  ScaffoldBuildPoint const & build_point_other,
39  bool first_dispatch
40 ) const
41 {
42  if ( ! first_dispatch ) {
43  utility_exit_with_message( "CRITICAL ERROR: UpstreamBuilder::compatible() double-dispatch failure" );
44  }
45  return other.compatible( other_hit, build_point_other, *this, my_hit, build_point_mine, false );
46 
47 }
48 
50  Hit const & my_hit,
51  ScaffoldBuildPoint const & build_point_mine,
52  ProteinUpstreamBuilder const & other,
53  Hit const & other_hit,
54  ScaffoldBuildPoint const & build_point_other,
55  bool first_dispatch
56 ) const
57 {
58  if ( ! first_dispatch ) {
59  utility_exit_with_message( "CRITICAL ERROR: UpstreamBuilder::compatible() double-dispatch failure" );
60  }
61  return other.compatible( other_hit, build_point_other, *this, my_hit, build_point_mine, false );
62 
63 }
64 
65 
66 void
68 {
69  bbgrid_ = bbgrid;
70 }
71 
73 
74 
75 }
76 }
77 }