Debian Codegraph @

ideal/model-bond-deltas.hh

raw symbols SCIP
1 /*
2 * ideal/model-bond-deltas.hh
3 *
4 * Copyright 2017 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 * 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 MODEL_BOND_DELTAS_HH
28 #define MODEL_BOND_DELTAS_HHcxx . . $ `ideal/model-bond-deltas.hh:28:9`!
29
30 #include <map>
31 #include <string>
32 #include <vector>
33
34 #include "geometry/protein-geometry.hh"cxx . . $ `<file>/geometry/protein-geometry.hh`/
35
36 namespace cootcxx . . $ coot/ {
37
38 class model_bond_deltascxx . . $ coot/model_bond_deltas# {
39
40 void fill_dictionariescxx . . $ coot/model_bond_deltas#fill_dictionaries(4e186ae4289f4708).(stdcxx . . $ std/::mapcxx . . $ std/map#<stdcxx . . $ std/::stringcxx . . $ std/string#, dictionary_residue_restraints_tcxx . . $ coot/dictionary_residue_restraints_t#> *dictionaries) const;
41 void resolvecxx . . $ coot/model_bond_deltas#resolve(c8849e07bd7fdf65).(const stdcxx . . $ std/::mapcxx . . $ std/map#<stdcxx . . $ std/::stringcxx . . $ std/string#, dictionary_residue_restraints_tcxx . . $ coot/dictionary_residue_restraints_t#> &dictionaries);
42 int imolcxx . . $ coot/model_bond_deltas#imol.;
43 mmdbcxx . . $ mmdb/::Managercxx . . $ mmdb/Manager# *molcxx . . $ coot/model_bond_deltas#mol.;
44 protein_geometrycxx . . $ coot/protein_geometry# *geom_pcxx . . $ coot/model_bond_deltas#geom_p.;
45 public:
46 model_bond_deltascxx . . $ coot/model_bond_deltas#model_bond_deltas(cba115a2258925a9).(mmdbcxx . . $ mmdb/::Managercxx . . $ mmdb/Manager# *mol_in, int imol_in, protein_geometrycxx . . $ coot/protein_geometry# *geom_p_in);
47 model_bond_deltascxx . . $ coot/model_bond_deltas#model_bond_deltas(49f6e7a06ebc5aa8).() {
48 molcxx . . $ coot/model_bond_deltas#mol. = 0;
49 imolcxx . . $ coot/model_bond_deltas#imol. = protein_geometrycxx . . $ coot/protein_geometry#::IMOL_ENC_UNSETcxx . . $ coot/protein_geometry#IMOL_ENC_UNSET.;
50 geom_pcxx . . $ coot/model_bond_deltas#geom_p. = 0;
51 }
52 void resolvecxx . . $ coot/model_bond_deltas#resolve(49f6e7a06ebc5aa8).();
53 class xyz_deltas_tcxx . . $ coot/model_bond_deltas#xyz_deltas_t# {
54 public:
55 stdcxx . . $ std/::vectorcxx . . $ std/vector#<double> xcxx . . $ coot/model_bond_deltas#xyz_deltas_t#x.[3];
56 stdcxx . . $ std/::vectorcxx . . $ std/vector#<double> deltascxx . . $ coot/model_bond_deltas#xyz_deltas_t#deltas.; // not resolved along axes
57 unsigned int ncxx . . $ coot/model_bond_deltas#xyz_deltas_t#n.;
58 xyz_deltas_tcxx . . $ coot/model_bond_deltas#xyz_deltas_t#xyz_deltas_t(49f6e7a06ebc5aa8).() {ncxx . . $ coot/model_bond_deltas#xyz_deltas_t#n. = 0;}
59 void addcxx . . $ coot/model_bond_deltas#xyz_deltas_t#add(8b7fbdd4b75a55a2).(double delta_in, const clippercxx . . $ clipper/::Coord_orthcxx . . $ clipper/Coord_orth# &d) {
60 deltascxx . . $ coot/model_bond_deltas#xyz_deltas_t#deltas..push_backcxx . . $ std/vector#push_back(77d9f17553126ecb).(delta_in);
61 xcxx . . $ coot/model_bond_deltas#xyz_deltas_t#x.[0].push_backcxx . . $ std/vector#push_back(77d9f17553126ecb).(d.xcxx . . $ clipper/Coord_orth#x(cb83ef2068996cec).());
62 xcxx . . $ coot/model_bond_deltas#xyz_deltas_t#x.[1].push_backcxx . . $ std/vector#push_back(77d9f17553126ecb).(d.ycxx . . $ clipper/Coord_orth#y(cb83ef2068996cec).());
63 xcxx . . $ coot/model_bond_deltas#xyz_deltas_t#x.[2].push_backcxx . . $ std/vector#push_back(77d9f17553126ecb).(d.zcxx . . $ clipper/Coord_orth#z(cb83ef2068996cec).());
64 ++ncxx . . $ coot/model_bond_deltas#xyz_deltas_t#n.;
65 }
66 unsigned int sizecxx . . $ coot/model_bond_deltas#xyz_deltas_t#size(ddd8539a2fcdd4ce).() const { return ncxx . . $ coot/model_bond_deltas#xyz_deltas_t#n.;}
67 };
68 xyz_deltas_tcxx . . $ coot/model_bond_deltas#xyz_deltas_t# xyzdcxx . . $ coot/model_bond_deltas#xyzd.;
69 void addcxx . . $ coot/model_bond_deltas#add(8b7fbdd4b75a55a2).(double delta_in, const clippercxx . . $ clipper/::Coord_orthcxx . . $ clipper/Coord_orth# &d) {
70 xyzdcxx . . $ coot/model_bond_deltas#xyzd..addcxx . . $ coot/model_bond_deltas#xyz_deltas_t#add(8b7fbdd4b75a55a2).(delta_in, d);
71 }
72 unsigned int sizecxx . . $ coot/model_bond_deltas#size(ddd8539a2fcdd4ce).() const { return xyzdcxx . . $ coot/model_bond_deltas#xyzd..sizecxx . . $ coot/model_bond_deltas#xyz_deltas_t#size(ddd8539a2fcdd4ce).(); }
73 };
74 }
75
76 #endif // MODEL_BOND_DELTAS_HH