Last change
on this file since 114 was
81,
checked in by rosiere, 16 years ago
|
- Finish Environment (and test)
- Continue predictor_unit
- Add external tools
- svn keyword "Id" set
|
-
Property svn:executable set to
*
-
Property svn:keywords set to
Id
|
File size:
564 bytes
|
Line | |
---|
1 | #ifdef STATISTICS |
---|
2 | #include "Behavioural/include/Stat.h" |
---|
3 | |
---|
4 | namespace morpheo { |
---|
5 | namespace behavioural { |
---|
6 | void Stat::test_and_save (bool force_save) |
---|
7 | { |
---|
8 | if ((_save_periodic and ((*_cycle)==_period)) or force_save) |
---|
9 | { |
---|
10 | eval_exprs(false); // evalue les expression non periodique au cycle |
---|
11 | |
---|
12 | for (std::map<std::string, var_t>::iterator i=_list_operand->begin(); |
---|
13 | i!= _list_operand->end(); |
---|
14 | ++i) |
---|
15 | { |
---|
16 | // save and reset ! |
---|
17 | i->second.save_counter.push_back(*(i->second.counter)); |
---|
18 | *(i->second.counter) = 0; |
---|
19 | } |
---|
20 | } |
---|
21 | } |
---|
22 | }; |
---|
23 | }; |
---|
24 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.