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
4584ef7d
Commit
4584ef7d
authored
10 years ago
by
Studer Gabriel
Browse files
Options
Downloads
Patches
Plain Diff
it's rather useless to uniquely identify a residue by its name
when it could be renamed in the meantime...
parent
c3314f47
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/mol/mm/src/settings.hh
+4
-4
4 additions, 4 deletions
modules/mol/mm/src/settings.hh
with
4 additions
and
4 deletions
modules/mol/mm/src/settings.hh
+
4
−
4
View file @
4584ef7d
...
@@ -43,11 +43,11 @@ public:
...
@@ -43,11 +43,11 @@ public:
TerminiExceptions
(){
}
TerminiExceptions
(){
}
void
SetException
(
const
ost
::
mol
::
ResidueHandle
&
res
,
const
String
&
exception_name
){
void
SetException
(
const
ost
::
mol
::
ResidueHandle
&
res
,
const
String
&
exception_name
){
exceptions_
[
res
.
Get
QualifiedNam
e
()]
=
exception_name
;
exceptions_
[
res
.
Get
HashCod
e
()]
=
exception_name
;
}
}
bool
HasException
(
const
ost
::
mol
::
ResidueHandle
&
res
)
const
{
bool
HasException
(
const
ost
::
mol
::
ResidueHandle
&
res
)
const
{
return
exceptions_
.
find
(
res
.
Get
QualifiedNam
e
())
!=
exceptions_
.
end
();
return
exceptions_
.
find
(
res
.
Get
HashCod
e
())
!=
exceptions_
.
end
();
}
}
String
GetException
(
const
ost
::
mol
::
ResidueHandle
&
res
)
const
{
String
GetException
(
const
ost
::
mol
::
ResidueHandle
&
res
)
const
{
...
@@ -56,11 +56,11 @@ public:
...
@@ -56,11 +56,11 @@ public:
ss
<<
"Tried to get termini exceptions of res "
<<
res
<<
" without defined exception!"
;
ss
<<
"Tried to get termini exceptions of res "
<<
res
<<
" without defined exception!"
;
throw
ost
::
Error
(
ss
.
str
());
throw
ost
::
Error
(
ss
.
str
());
}
}
std
::
map
<
Stri
ng
,
String
>::
const_iterator
i
=
exceptions_
.
find
(
res
.
Get
QualifiedNam
e
());
std
::
map
<
unsigned
lo
ng
,
String
>::
const_iterator
i
=
exceptions_
.
find
(
res
.
Get
HashCod
e
());
return
i
->
second
;
return
i
->
second
;
}
}
private
:
private
:
std
::
map
<
Stri
ng
,
String
>
exceptions_
;
std
::
map
<
unsigned
lo
ng
,
String
>
exceptions_
;
};
};
...
...
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