Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
libcifpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
libcifpp
Commits
08dd9dd5
Unverified
Commit
08dd9dd5
authored
Oct 03, 2022
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
missing methods
parent
557a1c2d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
18 deletions
+13
-18
include/cif++/model.hpp
+2
-2
src/model.cpp
+11
-16
No files found.
include/cif++/model.hpp
View file @
08dd9dd5
...
...
@@ -82,7 +82,7 @@ class atom
// bool getAnisoU(float anisou[6]) const;
int
charge
()
const
;
int
get_
charge
()
const
;
void
moveTo
(
const
point
&
p
)
{
...
...
@@ -304,7 +304,7 @@ class atom
// const compound &compound() const;
// bool is_water() const { return impl().mCompID == "HOH" or impl().mCompID == "H2O" or impl().mCompID == "WAT"; }
int
get_charge
()
const
;
int
get_charge
()
const
{
return
impl
().
get_charge
();
}
// float uIso() const;
// bool getAnisoU(float anisou[6]) const { return impl().getAnisoU(anisou); }
...
...
src/model.cpp
View file @
08dd9dd5
...
...
@@ -90,20 +90,20 @@ void atom::atom_impl::prefetch()
// return result;
// }
// int atom::atom_impl::
charge() const
//
{
// auto formalCharge = mR
ow["pdbx_formal_charge"].as<std::optional<int>>();
int
atom
::
atom_impl
::
get_
charge
()
const
{
auto
formalCharge
=
m_r
ow
[
"pdbx_formal_charge"
].
as
<
std
::
optional
<
int
>>
();
//
if (not formalCharge.has_value())
//
{
// auto c = compound(
);
if
(
not
formalCharge
.
has_value
())
{
auto
c
=
cif
::
compound_factory
::
instance
().
create
(
get_property
(
"label_comp_id"
)
);
//
if (c != nullptr and c->atoms().size() == 1)
//
formalCharge = c->atoms().front().charge;
//
}
if
(
c
!=
nullptr
and
c
->
atoms
().
size
()
==
1
)
formalCharge
=
c
->
atoms
().
front
().
charge
;
}
//
return formalCharge.value_or(0);
//
}
return
formalCharge
.
value_or
(
0
);
}
// const Compound *atom::atom_impl::compound() const
// {
...
...
@@ -196,11 +196,6 @@ void atom::atom_impl::prefetch()
// return *result;
// }
// int atom::charge() const
// {
// return impl().charge();
// }
// float atom::occupancy() const
// {
// return get_property<float>("occupancy");
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment