Debian Codegraph @

geometry/protein-donor-acceptors.hh

raw symbols SCIP
1 /*
2 * geometry/protein-donor-acceptors.hh
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 #ifndef PROTEIN_DONOR_ACCEPTORS_HH
28 #define PROTEIN_DONOR_ACCEPTORS_HHcxx . . $ `geometry/protein-donor-acceptors.hh:28:9`!
29
30 #include <string>
31 #include <vector>
32 #include <map>
33 #include "hb-types.hh"cxx . . $ `<file>/geometry/hb-types.hh`/
34
35 namespace cootcxx . . $ coot/ {
36
37 class quick_protein_donor_acceptorscxx . . $ coot/quick_protein_donor_acceptors# {
38 void initcxx . . $ coot/quick_protein_donor_acceptors#init(49f6e7a06ebc5aa8).();
39 public:
40
41 class keycxx . . $ coot/quick_protein_donor_acceptors#key# {
42 public:
43 stdcxx . . $ std/::stringcxx . . $ std/string# res_namecxx . . $ coot/quick_protein_donor_acceptors#key#res_name.;
44 stdcxx . . $ std/::stringcxx . . $ std/string# atom_namecxx . . $ coot/quick_protein_donor_acceptors#key#atom_name.;
45 keycxx . . $ coot/quick_protein_donor_acceptors#key#key(c3ca1c130ce09c52).(const stdcxx . . $ std/::stringcxx . . $ std/string# &r, const stdcxx . . $ std/::stringcxx . . $ std/string# &a) : res_namecxx . . $ std/__cxx11/basic_string#basic_string(a47f53d4115f6ce5).(r), atom_namecxx . . $ coot/quick_protein_donor_acceptors#key#atom_name.(a) {}
46 // this one is less than the key_in?
47 bool operatorcxx . . $ coot/quick_protein_donor_acceptors#key#`operator<`(8d6da6a399a27647).<(const keycxx . . $ coot/quick_protein_donor_acceptors#key# &key_in) const {
48 if (res_namecxx . . $ coot/quick_protein_donor_acceptors#key#res_name. < key_in.res_namecxx . . $ coot/quick_protein_donor_acceptors#key#res_name.) {
49 return true;
50 } else {
51 if (res_namecxx . . $ coot/quick_protein_donor_acceptors#key#res_name. > key_in.res_namecxx . . $ coot/quick_protein_donor_acceptors#key#res_name.) {
52 return false;
53 } else {
54 return atom_namecxx . . $ coot/quick_protein_donor_acceptors#key#atom_name. < key_in.atom_namecxx . . $ coot/quick_protein_donor_acceptors#key#atom_name.;
55 }
56 }
57 }
58 };
59 stdcxx . . $ std/::mapcxx . . $ std/map#<keycxx . . $ coot/quick_protein_donor_acceptors#key#, hb_tcxx . . $ coot/hb_t#> hb_type_mapcxx . . $ coot/quick_protein_donor_acceptors#hb_type_map.;
60 quick_protein_donor_acceptorscxx . . $ coot/quick_protein_donor_acceptors#quick_protein_donor_acceptors(49f6e7a06ebc5aa8).() { initcxx . . $ coot/quick_protein_donor_acceptors#init(49f6e7a06ebc5aa8).(); }
61 hb_tcxx . . $ coot/hb_t# get_typecxx . . $ coot/quick_protein_donor_acceptors#get_type(82488ddb32ba4c08).(const keycxx . . $ coot/quick_protein_donor_acceptors#key# &k) const;
62 void testcxx . . $ coot/quick_protein_donor_acceptors#test(83f5f38750778ac8).() const;
63 stdcxx . . $ std/::paircxx . . $ std/pair#<bool, bool> 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;
64 stdcxx . . $ std/::paircxx . . $ std/pair#<bool, bool> is_hydrogen_bond_by_typescxx . . $ coot/quick_protein_donor_acceptors#is_hydrogen_bond_by_types(7635c75eb365b830).(const keycxx . . $ coot/quick_protein_donor_acceptors#key# &k1, const keycxx . . $ coot/quick_protein_donor_acceptors#key# &k2) const {
65 stdcxx . . $ std/::paircxx . . $ std/pair#<keycxx . . $ coot/quick_protein_donor_acceptors#key#,keycxx . . $ coot/quick_protein_donor_acceptors#key#> kpcxx . . $ std/pair#pair(f3676cfe6d3aa9fc).(k1,k2);
66 return is_hydrogen_bond_by_typescxx . . $ coot/quick_protein_donor_acceptors#is_hydrogen_bond_by_types(cdadf20e110738bf).(kp);
67 }
68 stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::paircxx . . $ std/pair#<bool, bool> > 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#> > &hbtps) const;
69 };
70
71 }
72
73 #endif // PROTEIN_DONOR_ACCEPTORS_HH