Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tools
frackit
Commits
5a954bcb
Commit
5a954bcb
authored
Nov 29, 2020
by
Dennis Gläser
Browse files
[status] fix getCount function
parent
8b4f4805
Changes
1
Hide whitespace changes
Inline
Side-by-side
frackit/sampling/status.hh
View file @
5a954bcb
...
...
@@ -147,8 +147,11 @@ public:
/*!
* \brief Returns the entity count for the given id.
*/
std
::
size_t
getCount
(
const
Id
&
id
)
{
return
count_
[
id
.
get
()];
}
std
::
size_t
getCount
(
const
Id
&
id
)
const
{
const
auto
it
=
count_
.
find
(
id
.
get
());
return
it
!=
count_
.
end
()
?
it
->
second
:
0
;
}
/*!
* \brief Returns the overall entity count.
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment