| 1 | /* |
| 2 | * geometry/protein-donor-acceptors.cc |
| 3 | * |
| 4 | * Copyright 2016 by Medical Research Council |
| 5 | * Author: Paul Emsley |
| 6 | * |
| 7 | * This file is part of Coot |
| 8 | * |
| 9 | * This program is free software; you can redistribute it and/or modify |
| 10 | * it under the terms of the GNU Lesser General Public License as published |
| 11 | * by the Free Software Foundation; either version 3 of the License, or (at |
| 12 | * your option) any later version. |
| 13 | * |
| 14 | * This program is distributed in the hope that it will be useful, but |
| 15 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17 | * Lesser General Public License for more details. |
| 18 | * |
| 19 | * You should have received a copies of the GNU General Public License and |
| 20 | * the GNU Lesser General Public License along with this program; if not, |
| 21 | * write to the Free Software Foundation, Inc., 51 Franklin Street, |
| 22 | * Fifth Floor, Boston, MA, 02110-1301, USA. |
| 23 | * See http://www.gnu.org/licenses/ |
| 24 | * |
| 25 | */ |
| 26 | |
| 27 | #include <iostream> |
| 28 | |
| 29 | #include "protein-donor-acceptors.hh"cxx . . $ `<file>/geometry/protein-donor-acceptors.hh`/ |
| 30 | |
| 31 | void |
| 32 | cootcxx . . $ coot/::quick_protein_donor_acceptorscxx . . $ coot/quick_protein_donor_acceptors#::initcxx . . $ coot/quick_protein_donor_acceptors#init(49f6e7a06ebc5aa8).() { |
| 33 | |
| 34 | stdcxx . . $ std/::paircxx . . $ std/pair#<stdcxx . . $ std/::stringcxx . . $ std/string#, stdcxx . . $ std/::stringcxx . . $ std/string#> pcxx . . $ std/pair#pair(44d48473e6bc55c4).; |
| 35 | |
| 36 | // PDBv3 FIXME |
| 37 | hb_type_mapcxx . . $ coot/quick_protein_donor_acceptors#hb_type_map.[cxx . . $ std/map#`operator[]`(da459db78e6e18a3).keycxx . . $ coot/quick_protein_donor_acceptors#key#key(c3ca1c130ce09c52).("CYS"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., " SG "cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).)] = HB_ACCEPTORcxx . . $ coot/HB_ACCEPTOR.; |
| 38 | hb_type_mapcxx . . $ coot/quick_protein_donor_acceptors#hb_type_map.[cxx . . $ std/map#`operator[]`(da459db78e6e18a3).keycxx . . $ coot/quick_protein_donor_acceptors#key#key(c3ca1c130ce09c52).("ASP"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., " OD1"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).)] = HB_ACCEPTORcxx . . $ coot/HB_ACCEPTOR.; |
| 39 | hb_type_mapcxx . . $ coot/quick_protein_donor_acceptors#hb_type_map.[cxx . . $ std/map#`operator[]`(da459db78e6e18a3).keycxx . . $ coot/quick_protein_donor_acceptors#key#key(c3ca1c130ce09c52).("ASP"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., " OD2"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).)] = HB_ACCEPTORcxx . . $ coot/HB_ACCEPTOR.; |
| 40 | hb_type_mapcxx . . $ coot/quick_protein_donor_acceptors#hb_type_map.[cxx . . $ std/map#`operator[]`(da459db78e6e18a3).keycxx . . $ coot/quick_protein_donor_acceptors#key#key(c3ca1c130ce09c52).("GLU"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., " OE1"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).)] = HB_ACCEPTORcxx . . $ coot/HB_ACCEPTOR.; |
| 41 | hb_type_mapcxx . . $ coot/quick_protein_donor_acceptors#hb_type_map.[cxx . . $ std/map#`operator[]`(da459db78e6e18a3).keycxx . . $ coot/quick_protein_donor_acceptors#key#key(c3ca1c130ce09c52).("GLU"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., " OE2"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).)] = HB_ACCEPTORcxx . . $ coot/HB_ACCEPTOR.; |
| 42 | hb_type_mapcxx . . $ coot/quick_protein_donor_acceptors#hb_type_map.[cxx . . $ std/map#`operator[]`(da459db78e6e18a3).keycxx . . $ coot/quick_protein_donor_acceptors#key#key(c3ca1c130ce09c52).("HIS"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., " ND1"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).)] = HB_BOTHcxx . . $ coot/HB_BOTH.; |
| 43 | hb_type_mapcxx . . $ coot/quick_protein_donor_acceptors#hb_type_map.[cxx . . $ std/map#`operator[]`(da459db78e6e18a3).keycxx . . $ coot/quick_protein_donor_acceptors#key#key(c3ca1c130ce09c52).("HIS"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., " NE2"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).)] = HB_BOTHcxx . . $ coot/HB_BOTH.; |
| 44 | hb_type_mapcxx . . $ coot/quick_protein_donor_acceptors#hb_type_map.[cxx . . $ std/map#`operator[]`(da459db78e6e18a3).keycxx . . $ coot/quick_protein_donor_acceptors#key#key(c3ca1c130ce09c52).("LYS"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., " NZ "cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).)] = HB_DONORcxx . . $ coot/HB_DONOR.; |
| 45 | hb_type_mapcxx . . $ coot/quick_protein_donor_acceptors#hb_type_map.[cxx . . $ std/map#`operator[]`(da459db78e6e18a3).keycxx . . $ coot/quick_protein_donor_acceptors#key#key(c3ca1c130ce09c52).("MET"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., " SD "cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).)] = HB_ACCEPTORcxx . . $ coot/HB_ACCEPTOR.; |
| 46 | hb_type_mapcxx . . $ coot/quick_protein_donor_acceptors#hb_type_map.[cxx . . $ std/map#`operator[]`(da459db78e6e18a3).keycxx . . $ coot/quick_protein_donor_acceptors#key#key(c3ca1c130ce09c52).("ASN"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., " OD1"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).)] = HB_ACCEPTORcxx . . $ coot/HB_ACCEPTOR.; |
| 47 | hb_type_mapcxx . . $ coot/quick_protein_donor_acceptors#hb_type_map.[cxx . . $ std/map#`operator[]`(da459db78e6e18a3).keycxx . . $ coot/quick_protein_donor_acceptors#key#key(c3ca1c130ce09c52).("ASN"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., " ND2"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).)] = HB_DONORcxx . . $ coot/HB_DONOR.; |
| 48 | hb_type_mapcxx . . $ coot/quick_protein_donor_acceptors#hb_type_map.[cxx . . $ std/map#`operator[]`(da459db78e6e18a3).keycxx . . $ coot/quick_protein_donor_acceptors#key#key(c3ca1c130ce09c52).("GLN"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., " OE1"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).)] = HB_ACCEPTORcxx . . $ coot/HB_ACCEPTOR.; |
| 49 | hb_type_mapcxx . . $ coot/quick_protein_donor_acceptors#hb_type_map.[cxx . . $ std/map#`operator[]`(da459db78e6e18a3).keycxx . . $ coot/quick_protein_donor_acceptors#key#key(c3ca1c130ce09c52).("GLN"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., " NE2"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).)] = HB_DONORcxx . . $ coot/HB_DONOR.; |
| 50 | hb_type_mapcxx . . $ coot/quick_protein_donor_acceptors#hb_type_map.[cxx . . $ std/map#`operator[]`(da459db78e6e18a3).keycxx . . $ coot/quick_protein_donor_acceptors#key#key(c3ca1c130ce09c52).("ARG"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., " NE "cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).)] = HB_DONORcxx . . $ coot/HB_DONOR.; |
| 51 | hb_type_mapcxx . . $ coot/quick_protein_donor_acceptors#hb_type_map.[cxx . . $ std/map#`operator[]`(da459db78e6e18a3).keycxx . . $ coot/quick_protein_donor_acceptors#key#key(c3ca1c130ce09c52).("ARG"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., " NH1"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).)] = HB_DONORcxx . . $ coot/HB_DONOR.; |
| 52 | hb_type_mapcxx . . $ coot/quick_protein_donor_acceptors#hb_type_map.[cxx . . $ std/map#`operator[]`(da459db78e6e18a3).keycxx . . $ coot/quick_protein_donor_acceptors#key#key(c3ca1c130ce09c52).("ARG"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., " NH2"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).)] = HB_DONORcxx . . $ coot/HB_DONOR.; |
| 53 | hb_type_mapcxx . . $ coot/quick_protein_donor_acceptors#hb_type_map.[cxx . . $ std/map#`operator[]`(da459db78e6e18a3).keycxx . . $ coot/quick_protein_donor_acceptors#key#key(c3ca1c130ce09c52).("SER"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., " OG "cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).)] = HB_BOTHcxx . . $ coot/HB_BOTH.; |
| 54 | hb_type_mapcxx . . $ coot/quick_protein_donor_acceptors#hb_type_map.[cxx . . $ std/map#`operator[]`(da459db78e6e18a3).keycxx . . $ coot/quick_protein_donor_acceptors#key#key(c3ca1c130ce09c52).("THR"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., " OG "cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).)] = HB_BOTHcxx . . $ coot/HB_BOTH.; |
| 55 | hb_type_mapcxx . . $ coot/quick_protein_donor_acceptors#hb_type_map.[cxx . . $ std/map#`operator[]`(da459db78e6e18a3).keycxx . . $ coot/quick_protein_donor_acceptors#key#key(c3ca1c130ce09c52).("TRP"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., " NE1"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).)] = HB_DONORcxx . . $ coot/HB_DONOR.; |
| 56 | hb_type_mapcxx . . $ coot/quick_protein_donor_acceptors#hb_type_map.[cxx . . $ std/map#`operator[]`(da459db78e6e18a3).keycxx . . $ coot/quick_protein_donor_acceptors#key#key(c3ca1c130ce09c52).("TYR"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., " OH "cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).)] = HB_BOTHcxx . . $ coot/HB_BOTH.; |
| 57 | |
| 58 | const char *l[] = {"ALA", "CYS", "ASP", "GLU", "PHE", "GLY", "HIS", "ILE", "LYS", "LEU", |
| 59 | "MET", "MSE", "ASN", "PRO", "GLN", "ARG", "SER", "TYR", "VAL", "TRP", |
| 60 | "TYR" }; |
| 61 | unsigned int n_res_types = 21; |
| 62 | |
| 63 | for (unsigned int i=0; i<n_res_types; i++) { |
| 64 | keycxx . . $ coot/quick_protein_donor_acceptors#key# pncxx . . $ coot/quick_protein_donor_acceptors#key#key(c3ca1c130ce09c52).(lcxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).[i], " N "cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).); |
| 65 | keycxx . . $ coot/quick_protein_donor_acceptors#key# pocxx . . $ coot/quick_protein_donor_acceptors#key#key(c3ca1c130ce09c52).(lcxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).[i], " O "cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).); |
| 66 | hb_type_mapcxx . . $ coot/quick_protein_donor_acceptors#hb_type_map.[cxx . . $ std/map#`operator[]`(bbd415b616967878).pn] = HB_DONORcxx . . $ coot/HB_DONOR.; |
| 67 | hb_type_mapcxx . . $ coot/quick_protein_donor_acceptors#hb_type_map.[cxx . . $ std/map#`operator[]`(bbd415b616967878).po] = HB_ACCEPTORcxx . . $ coot/HB_ACCEPTOR.; |
| 68 | } |
| 69 | |
| 70 | } |
| 71 | |
| 72 | cootcxx . . $ coot/::hb_tcxx . . $ coot/hb_t# |
| 73 | cootcxx . . $ coot/::quick_protein_donor_acceptorscxx . . $ coot/quick_protein_donor_acceptors#::get_typecxx . . $ coot/quick_protein_donor_acceptors#get_type(82488ddb32ba4c08).(const keycxx . . $ coot/quick_protein_donor_acceptors#key# &k) const { |
| 74 | |
| 75 | hb_tcxx . . $ coot/hb_t# r = HB_UNASSIGNEDcxx . . $ coot/HB_UNASSIGNED.; |
| 76 | |
| 77 | stdcxx . . $ std/::mapcxx . . $ std/map#<key, hb_t>::const_iteratorcxx . . $ std/map#const_iterator# it = hb_type_mapcxx . . $ coot/quick_protein_donor_acceptors#hb_type_map..findcxx . . $ std/map#find(7b3585bb5da8f7d).(k); |
| 78 | |
| 79 | if (it != hb_type_mapcxx . . $ coot/quick_protein_donor_acceptors#hb_type_map..endcxx . . $ std/map#end(b953fec338ad1a3b).()) { |
| 80 | r = it->cxx . . $ std/_Rb_tree_const_iterator#`operator->`(8e614c7de0b1573e).secondcxx . . $ std/pair#second.; |
| 81 | } |
| 82 | |
| 83 | return r; |
| 84 | } |
| 85 | |
| 86 | // first: did we find an answer (ie. both were protein residues?) |
| 87 | // second: was it a potential hydrogen bond (had the correct atom types?" |
| 88 | // |
| 89 | stdcxx . . $ std/::paircxx . . $ std/pair#<bool, bool> |
| 90 | cootcxx . . $ coot/::quick_protein_donor_acceptorscxx . . $ coot/quick_protein_donor_acceptors#::is_hydrogen_bond_by_typescxx . . $ coot/quick_protein_donor_acceptors#is_hydrogen_bond_by_types(cdadf20e110738bf).(const stdcxx . . $ std/::paircxx . . $ std/pair#<keycxx . . $ coot/quick_protein_donor_acceptors#key#, keycxx . . $ coot/quick_protein_donor_acceptors#key#> &hbtp) const { |
| 91 | |
| 92 | bool found = false; |
| 93 | bool r = false; |
| 94 | const keycxx . . $ coot/quick_protein_donor_acceptors#key# &key_1 = hbtp.firstcxx . . $ std/pair#first.; |
| 95 | const keycxx . . $ coot/quick_protein_donor_acceptors#key# &key_2 = hbtp.secondcxx . . $ std/pair#second.; |
| 96 | hb_tcxx . . $ coot/hb_t# type_1 = get_typecxx . . $ coot/quick_protein_donor_acceptors#get_type(82488ddb32ba4c08).(key_1); |
| 97 | if (type_1 == HB_BOTHcxx . . $ coot/HB_BOTH. || type_1 == HB_ACCEPTORcxx . . $ coot/HB_ACCEPTOR. || type_1 == HB_DONORcxx . . $ coot/HB_DONOR.) { |
| 98 | hb_tcxx . . $ coot/hb_t# type_2 = get_typecxx . . $ coot/quick_protein_donor_acceptors#get_type(82488ddb32ba4c08).(key_2); |
| 99 | if (type_2 == HB_BOTHcxx . . $ coot/HB_BOTH. || type_2 == HB_ACCEPTORcxx . . $ coot/HB_ACCEPTOR. || type_2 == HB_DONORcxx . . $ coot/HB_DONOR.) { |
| 100 | found = true; |
| 101 | if (type_1 == HB_BOTHcxx . . $ coot/HB_BOTH. || type_1 == HB_ACCEPTORcxx . . $ coot/HB_ACCEPTOR.) |
| 102 | if (type_2 == HB_BOTHcxx . . $ coot/HB_BOTH. || type_2 == HB_DONORcxx . . $ coot/HB_DONOR.) |
| 103 | r = true; |
| 104 | if (type_1 == HB_BOTHcxx . . $ coot/HB_BOTH. || type_1 == HB_DONORcxx . . $ coot/HB_DONOR.) |
| 105 | if (type_2 == HB_BOTHcxx . . $ coot/HB_BOTH. || type_2 == HB_ACCEPTORcxx . . $ coot/HB_ACCEPTOR.) |
| 106 | r = true; |
| 107 | } else { |
| 108 | if (type_2 == HB_NEITHERcxx . . $ coot/HB_NEITHER.) |
| 109 | found = true; |
| 110 | } |
| 111 | } else { |
| 112 | hb_tcxx . . $ coot/hb_t# type_2 = get_typecxx . . $ coot/quick_protein_donor_acceptors#get_type(82488ddb32ba4c08).(key_2); |
| 113 | if (type_1 != HB_UNASSIGNEDcxx . . $ coot/HB_UNASSIGNED.) |
| 114 | if (type_2 != HB_UNASSIGNEDcxx . . $ coot/HB_UNASSIGNED.) |
| 115 | found = true; |
| 116 | } |
| 117 | |
| 118 | return stdcxx . . $ std/pair#pair(62e1774a2dc03c82).::paircxx . . $ std/pair#<bool, bool> (found, r); |
| 119 | } |
| 120 | |
| 121 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::paircxx . . $ std/pair#<bool, bool> > |
| 122 | cootcxx . . $ coot/::quick_protein_donor_acceptorscxx . . $ coot/quick_protein_donor_acceptors#::is_hydrogen_bond_by_typescxx . . $ coot/quick_protein_donor_acceptors#is_hydrogen_bond_by_types(8606b4b8edbd559d).(stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::paircxx . . $ std/pair#<keycxx . . $ coot/quick_protein_donor_acceptors#key#, keycxx . . $ coot/quick_protein_donor_acceptors#key#> > &hbtp) const { |
| 123 | |
| 124 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::paircxx . . $ std/pair#<bool, bool> > vcxx . . $ std/vector#vector(83fdeebbe0501a83).(hbtp.sizecxx . . $ std/vector#size(c9b1e749b64d5edc).()); |
| 125 | for (unsigned int i=0; i<hbtp.sizecxx . . $ std/vector#size(c9b1e749b64d5edc).(); i++) |
| 126 | v[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).i] =cxx . . $ std/pair#`operator=`(ab9ebd0b824095ec). is_hydrogen_bond_by_typescxx . . $ coot/quick_protein_donor_acceptors#is_hydrogen_bond_by_types(cdadf20e110738bf).(hbtp[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).i]); |
| 127 | return vcxx . . $ std/vector#vector(6f559d22b039ccdb).; |
| 128 | } |
| 129 | |
| 130 | |
| 131 | |
| 132 | void |
| 133 | cootcxx . . $ coot/::quick_protein_donor_acceptorscxx . . $ coot/quick_protein_donor_acceptors#::testcxx . . $ coot/quick_protein_donor_acceptors#test(83f5f38750778ac8).() const { |
| 134 | |
| 135 | hb_tcxx . . $ coot/hb_t# r; |
| 136 | |
| 137 | if (false) { |
| 138 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "ref: HB_UNASSIGNED " <<cxx . . $ std/basic_ostream#`operator<<`(23b6575433a77e57). HB_UNASSIGNEDcxx . . $ coot/HB_UNASSIGNED. <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 139 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "ref: HB_NEITHER " <<cxx . . $ std/basic_ostream#`operator<<`(23b6575433a77e57). HB_NEITHERcxx . . $ coot/HB_NEITHER. <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 140 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "ref: HB_DONOR " <<cxx . . $ std/basic_ostream#`operator<<`(23b6575433a77e57). HB_DONORcxx . . $ coot/HB_DONOR. <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 141 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "ref: HB_ACCEPTOR " <<cxx . . $ std/basic_ostream#`operator<<`(23b6575433a77e57). HB_ACCEPTORcxx . . $ coot/HB_ACCEPTOR. <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 142 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "ref: HB_HYDROGEN " <<cxx . . $ std/basic_ostream#`operator<<`(23b6575433a77e57). HB_HYDROGENcxx . . $ coot/HB_HYDROGEN. <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 143 | } |
| 144 | |
| 145 | bool r1 = (is_hydrogen_bond_by_typescxx . . $ coot/quick_protein_donor_acceptors#is_hydrogen_bond_by_types(cdadf20e110738bf).(stdcxx . . $ std/pair#pair(62e1774a2dc03c82).::paircxx . . $ std/pair#<keycxx . . $ coot/quick_protein_donor_acceptors#key#,keycxx . . $ coot/quick_protein_donor_acceptors#key#>(keycxx . . $ coot/quick_protein_donor_acceptors#key#key(c3ca1c130ce09c52).("ALA"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., " CB "cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).), keycxx . . $ coot/quick_protein_donor_acceptors#key#key(c3ca1c130ce09c52).("SER"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., " OG "cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).))).secondcxx . . $ std/pair#second. == false); |
| 146 | bool r2 = (is_hydrogen_bond_by_typescxx . . $ coot/quick_protein_donor_acceptors#is_hydrogen_bond_by_types(cdadf20e110738bf).(stdcxx . . $ std/pair#pair(62e1774a2dc03c82).::paircxx . . $ std/pair#<keycxx . . $ coot/quick_protein_donor_acceptors#key#,keycxx . . $ coot/quick_protein_donor_acceptors#key#>(keycxx . . $ coot/quick_protein_donor_acceptors#key#key(c3ca1c130ce09c52).("ALA"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., " N "cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).), keycxx . . $ coot/quick_protein_donor_acceptors#key#key(c3ca1c130ce09c52).("SER"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., " OG "cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).))).secondcxx . . $ std/pair#second. == true); |
| 147 | bool r3 = (is_hydrogen_bond_by_typescxx . . $ coot/quick_protein_donor_acceptors#is_hydrogen_bond_by_types(cdadf20e110738bf).(stdcxx . . $ std/pair#pair(62e1774a2dc03c82).::paircxx . . $ std/pair#<keycxx . . $ coot/quick_protein_donor_acceptors#key#,keycxx . . $ coot/quick_protein_donor_acceptors#key#>(keycxx . . $ coot/quick_protein_donor_acceptors#key#key(c3ca1c130ce09c52).("TYR"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., " N "cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).), keycxx . . $ coot/quick_protein_donor_acceptors#key#key(c3ca1c130ce09c52).("TRP"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., " NE1"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).))).secondcxx . . $ std/pair#second. == false); |
| 148 | |
| 149 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/basic_ostream#`operator<<`(511cbee2d2e28827). r1 <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " " <<cxx . . $ std/basic_ostream#`operator<<`(511cbee2d2e28827). r2 <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " " <<cxx . . $ std/basic_ostream#`operator<<`(511cbee2d2e28827). r3 <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 150 | } |