Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
19b49efa
Commit
19b49efa
authored
14 years ago
by
Marco Biasini
Browse files
Options
Downloads
Patches
Plain Diff
properly initialise AtomImpl properties
parent
08528947
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/mol/base/src/impl/atom_impl.cc
+9
-1
9 additions, 1 deletion
modules/mol/base/src/impl/atom_impl.cc
modules/mol/base/src/impl/atom_impl.hh
+1
-1
1 addition, 1 deletion
modules/mol/base/src/impl/atom_impl.hh
with
10 additions
and
2 deletions
modules/mol/base/src/impl/atom_impl.cc
+
9
−
1
View file @
19b49efa
...
...
@@ -45,12 +45,16 @@ AtomImpl::AtomImpl(const EntityImplPtr& e,
res_
(
r
),
name_
(
n
),
pos_
(
p
),
occupancy_
(
0.0
),
b_factor_
(
1.0
),
prop_
(
NULL
),
is_hetatm_
(
false
),
element_
(
ele
),
is_hetatm_
(
false
),
prim_connector_
(),
connector_list_
(),
fragment_
(),
state_
(
0
),
index_
(
index
)
{
EntityHandle
ent
=
this
->
GetEntity
();
...
...
@@ -206,6 +210,10 @@ void AtomImpl::UpdateFromXCS()
}
AtomImpl
::~
AtomImpl
()
{
if
(
prop_
&&
!
prop_
->
is_default
)
{
delete
prop_
;
prop_
=
NULL
;
}
}
EntityImplPtr
AtomImpl
::
GetEntity
()
const
...
...
This diff is collapsed.
Click to expand it.
modules/mol/base/src/impl/atom_impl.hh
+
1
−
1
View file @
19b49efa
...
...
@@ -227,9 +227,9 @@ private:
geom
::
Vec3
tf_pos_
;
Real
occupancy_
;
Real
b_factor_
;
String
element_
;
AtomProp
*
prop_
;
bool
is_hetatm_
;
String
element_
;
ConnectorImplP
prim_connector_
;
ConnectorImplList
connector_list_
;
FragmentImplP
fragment_
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment