Commit 44fcf9f1 authored by Kevin Coulomb's avatar Kevin Coulomb
Browse files

Modification pour prendre en compte les etats non totalement inclus dans l'intervalle

parent 7c3905a2
......@@ -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;
......
......@@ -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);
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment