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
d9fdb9a0
Commit
d9fdb9a0
authored
3 years ago
by
Studer Gabriel
Browse files
Options
Downloads
Patches
Plain Diff
move stuff out of header file
parent
e6b9a408
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/io/src/mol/omf.cc
+10
-0
10 additions, 0 deletions
modules/io/src/mol/omf.cc
modules/io/src/mol/omf.hh
+0
-11
0 additions, 11 deletions
modules/io/src/mol/omf.hh
with
10 additions
and
11 deletions
modules/io/src/mol/omf.cc
+
10
−
0
View file @
d9fdb9a0
...
@@ -21,6 +21,16 @@ namespace{
...
@@ -21,6 +21,16 @@ namespace{
}
}
};
};
// define hash function, so we can use ResidueDefinition as key in an unordered
// map. The used hash function is overly simple and gives a hash collision
// whenever we have two residues of same name but different atom composition.
// That's hopefully rare...
struct
ResidueDefinitionHash
{
std
::
size_t
operator
()(
const
ost
::
io
::
ResidueDefinition
&
r
)
const
{
return
std
::
hash
<
String
>
()(
r
.
name
);
}
};
// some helpers
// some helpers
void
RealToIntVec
(
const
std
::
vector
<
Real
>&
real_vec
,
void
RealToIntVec
(
const
std
::
vector
<
Real
>&
real_vec
,
std
::
vector
<
int
>&
int_vec
,
Real
factor
)
{
std
::
vector
<
int
>&
int_vec
,
Real
factor
)
{
...
...
This diff is collapsed.
Click to expand it.
modules/io/src/mol/omf.hh
+
0
−
11
View file @
d9fdb9a0
...
@@ -75,17 +75,6 @@ struct ResidueDefinition {
...
@@ -75,17 +75,6 @@ struct ResidueDefinition {
};
};
// define hash function, so we can use ResidueDefinition as key in an unordered
// map. The used hash function is overly simple and gives a hash collision
// whenever we have two residues of same name but different atom composition.
// That's hopefully rare...
struct
ResidueDefinitionHash
{
std
::
size_t
operator
()(
const
ResidueDefinition
&
r
)
const
{
return
std
::
hash
<
String
>
()(
r
.
name
);
}
};
struct
BioUnitDefinition
{
struct
BioUnitDefinition
{
BioUnitDefinition
()
{
}
BioUnitDefinition
()
{
}
...
...
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