Debian Codegraph @

coords/phenix-geo.hh

raw symbols SCIP
1 /* canyon/phenix-geo.hh
2 *
3 * Copyright 2014 by Medical Research Council
4 * Author: Paul Emsley
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as published
8 * by the Free Software Foundation; either version 3 of the License, or (at
9 * your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copies of the GNU General Public License and
17 * the GNU Lesser General Public License along with this program; if not,
18 * write to the Free Software Foundation, Inc., 51 Franklin Street,
19 * Fifth Floor, Boston, MA, 02110-1301, USA.
20 * See http://www.gnu.org/licenses/
21 *
22 */
23
24 #ifndef PHENIX_GEO_HH
25 #define PHENIX_GEO_HHcxx . . $ `coords/phenix-geo.hh:25:9`!
26
27 #include <vector>
28 #include "geometry/residue-and-atom-specs.hh"cxx . . $ `<file>/geometry/residue-and-atom-specs.hh`/
29
30 namespace cootcxx . . $ coot/ {
31
32 class phenix_geo_bondcxx . . $ coot/phenix_geo_bond# {
33 public:
34 atom_spec_tcxx . . $ coot/atom_spec_t# atom_1cxx . . $ coot/phenix_geo_bond#atom_1.;
35 atom_spec_tcxx . . $ coot/atom_spec_t# atom_2cxx . . $ coot/phenix_geo_bond#atom_2.;
36 double idealcxx . . $ coot/phenix_geo_bond#ideal.;
37 double modelcxx . . $ coot/phenix_geo_bond#model.;
38 double deltacxx . . $ coot/phenix_geo_bond#delta.;
39 double sigmacxx . . $ coot/phenix_geo_bond#sigma.;
40 double weightcxx . . $ coot/phenix_geo_bond#weight.;
41 double residualcxx . . $ coot/phenix_geo_bond#residual.;
42 bool geom_set_flagcxx . . $ coot/phenix_geo_bond#geom_set_flag.;
43 phenix_geo_bondcxx . . $ coot/phenix_geo_bond#phenix_geo_bond(3575b52a18eda857).(const atom_spec_tcxx . . $ coot/atom_spec_t# &a1,
44 const atom_spec_tcxx . . $ coot/atom_spec_t# &a2) {
45 geom_set_flagcxx . . $ coot/phenix_geo_bond#geom_set_flag. = false;
46 atom_1cxx . . $ coot/phenix_geo_bond#atom_1. =cxx . . $ coot/atom_spec_t#`operator=`(2f43df4925dd67bc). a1;
47 atom_2cxx . . $ coot/phenix_geo_bond#atom_2. =cxx . . $ coot/atom_spec_t#`operator=`(2f43df4925dd67bc). a2;
48 }
49 void set_geomcxx . . $ coot/phenix_geo_bond#set_geom(56b37c9ef2ead2d3).(double ideal_in, double model_in, double delta_in,
50 double sigma_in, double weight_in, double residual_in) {
51 idealcxx . . $ coot/phenix_geo_bond#ideal. = ideal_in;
52 modelcxx . . $ coot/phenix_geo_bond#model. = model_in;
53 deltacxx . . $ coot/phenix_geo_bond#delta. = delta_in;
54 sigmacxx . . $ coot/phenix_geo_bond#sigma. = sigma_in;
55 weightcxx . . $ coot/phenix_geo_bond#weight. = weight_in;
56 residualcxx . . $ coot/phenix_geo_bond#residual. = residual_in;
57 }
58 #ifndef SWIG
59 friend stdcxx . . $ std/::ostreamcxx . . $ std/ostream# &operatorcxx . . $ coot/`operator<<`(c567dbbdd15bf9d).<<(stdcxx . . $ std/::ostreamcxx . . $ std/ostream# &s, phenix_geo_bondcxx . . $ coot/phenix_geo_bond# bg);
60 #endif
61 };
62 #ifndef SWIG
63 stdcxx . . $ std/::ostreamcxx . . $ std/ostream# &operatorcxx . . $ coot/`operator<<`(c567dbbdd15bf9d).<<(stdcxx . . $ std/::ostreamcxx . . $ std/ostream# &s, phenix_geo_bondcxx . . $ coot/phenix_geo_bond# bg);
64 #endif
65
66 class phenix_geo_bondscxx . . $ coot/phenix_geo_bonds# {
67 atom_spec_tcxx . . $ coot/atom_spec_t# parse_line_for_atom_speccxx . . $ coot/phenix_geo_bonds#parse_line_for_atom_spec(2af29367f50d09f9).(const stdcxx . . $ std/::stringcxx . . $ std/string# &l) const;
68
69 public:
70 stdcxx . . $ std/::vectorcxx . . $ std/vector#<phenix_geo_bondcxx . . $ coot/phenix_geo_bond#> bondscxx . . $ coot/phenix_geo_bonds#bonds.;
71 phenix_geo_bondscxx . . $ coot/phenix_geo_bonds#phenix_geo_bonds(49f6e7a06ebc5aa8).() {}
72 phenix_geo_bondscxx . . $ coot/phenix_geo_bonds#phenix_geo_bonds(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string# &file_name);
73 unsigned int sizecxx . . $ coot/phenix_geo_bonds#size(ddd8539a2fcdd4ce).() const { return bondscxx . . $ coot/phenix_geo_bonds#bonds..sizecxx . . $ std/vector#size(c9b1e749b64d5edc).(); }
74 #ifndef SWIG
75 const phenix_geo_bondcxx . . $ coot/phenix_geo_bond# &operatorcxx . . $ coot/phenix_geo_bonds#`operator[]`(4ca2ad96405dc221).[](const unsigned int &idx) const { return bondscxx . . $ coot/phenix_geo_bonds#bonds.[cxx . . $ std/vector#`operator[]`(c8255e0fa326ac32).idx]; }
76 #endif
77 void add_bondcxx . . $ coot/phenix_geo_bonds#add_bond(d4d8e383c1127050).(const phenix_geo_bondcxx . . $ coot/phenix_geo_bond# &b) {
78 bondscxx . . $ coot/phenix_geo_bonds#bonds..push_backcxx . . $ std/vector#push_back(77d9f17553126ecb).(b);
79 }
80 };
81 }
82
83 #endif // PHENIX_GEO_HH