Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
solverstack
vite
Commits
44fcf9f1
Commit
44fcf9f1
authored
May 09, 2009
by
Kevin Coulomb
Browse files
Modification pour prendre en compte les etats non totalement inclus dans l'intervalle
parent
7c3905a2
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/statistics/Statistic.cpp
View file @
44fcf9f1
...
...
@@ -29,8 +29,8 @@ void Statistic::add_state(EntityValue const* ent, double length){
}
}
void
Statistic
::
add_link
(
Container
*
cont
){
map
<
Container
*
,
int
>::
iterator
i
=
_link
.
find
(
cont
);
void
Statistic
::
add_link
(
const
Container
*
cont
){
map
<
const
Container
*
,
int
>::
iterator
i
=
_link
.
find
(
cont
);
// If it does not exist, add a new entry
if
(
i
==
_link
.
end
())
{
_link
[
cont
]
=
1
;
...
...
src/statistics/Statistic.hpp
View file @
44fcf9f1
...
...
@@ -22,7 +22,7 @@ struct stats{
class
Statistic
{
private
:
map
<
const
EntityValue
*
,
stats
*>
_states
;
map
<
Container
*
,
int
>
_link
;
map
<
const
Container
*
,
int
>
_link
;
int
_number_link
;
int
_event
;
...
...
@@ -51,7 +51,7 @@ public :
* \fn add_link(Container * target)
* \brief Add a new entry to the link map
*/
void
add_link
(
Container
*
target
);
void
add_link
(
const
Container
*
target
);
/*!
* \fn set_nb_event(int number);
...
...
src/statistics/Stats_window.hpp
View file @
44fcf9f1
...
...
@@ -27,10 +27,10 @@ class Stats_window;
*/
class
Stats_window
:
public
QMainWindow
,
protected
Ui
::
stats_viewer
{
Q_OBJECT
private:
private:
Interface_console
*
_core
;
Trace
*
_trace
;
...
...
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