Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HBEvalTuple.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 // This file is part of the Rosetta software suite and is made available under license.
5 // The Rosetta software is developed by the contributing members of the Rosetta Commons consortium.
6 // (C) 199x-2009 Rosetta Commons participating institutions and developers.
7 // For more information, see http://www.rosettacommons.org/.
8 
9 /// @file core/scoring/hbonds/HBEvalTuple.hh
10 /// @brief Tuple describing data about the donor and acceptor in a single hbond
11 /// @author Andrew Leaver-Fay (aleaverfay@gmail.com)
12 
13 // unit headers
15 
16 // Package headers
18 
19 // Project headers
21 
22 // ObjexxFCL headers
23 #include <ObjexxFCL/FArray3D.hh>
24 
25 namespace core {
26 namespace scoring {
27 namespace hbonds {
28 
30  HBDonChemType don,
31  HBAccChemType acc,
32  HBSeqSep sequence_sep
33 ) :
34  don_type_( don ),
35  acc_type_( acc ),
36  seq_sep_( sequence_sep )
37 {
39 }
40 
42  int const datm,
43  core::conformation::Residue const & don_rsd,
44  int const aatm,
45  core::conformation::Residue const & acc_rsd
46 )
47 {
48  don_type_ = get_hb_don_chem_type(datm, don_rsd);
49  acc_type_ = get_hb_acc_chem_type(aatm, acc_rsd);
52 }
53 
54 bool
55 operator==(HBEvalTuple const & a, HBEvalTuple const & b){
56  return(
57  a.don_type_ == b.don_type_ &&
58  a.acc_type_ == b.acc_type_ &&
59  a.seq_sep_ == b.seq_sep_ &&
60  a.eval_type_ == b.eval_type_
61  );
62 }
63 
64 
66 {
67  don_type_ = don;
69 }
70 
72 {
73  acc_type_ = acc;
75 }
76 
78 {
79  seq_sep_ = seqsep;
81 }
82 
84 {
86 }
87 
88 
89 
90 } // namespace hbonds
91 } // namespace scoring
92 } // namespace core