Last change
on this file since 136 was
88,
checked in by rosiere, 16 years ago
|
Almost complete design
with Test and test platform
|
-
Property svn:executable set to
*
-
Property svn:keywords set to
Id
|
File size:
565 bytes
|
Rev | Line | |
---|
[71] | 1 | #ifdef STATISTICS |
---|
| 2 | #include "Behavioural/include/Stat.h" |
---|
| 3 | |
---|
| 4 | namespace morpheo { |
---|
| 5 | namespace behavioural { |
---|
| 6 | |
---|
| 7 | Stat_binary_tree * Stat::string2tree (std::string expr) |
---|
| 8 | { |
---|
[88] | 9 | std::map<std::string, counter_t*> * operand = new std::map<std::string, counter_t*>; |
---|
[71] | 10 | |
---|
[88] | 11 | for (std::map<std::string, var_t>::iterator it = _list_operand->begin(); |
---|
| 12 | it != _list_operand->end(); |
---|
| 13 | ++ it) |
---|
| 14 | (*operand) [it->first] = it->second.counter; |
---|
[71] | 15 | |
---|
[88] | 16 | Stat_binary_tree * tree = new Stat_binary_tree(expr,operand); |
---|
[71] | 17 | |
---|
[88] | 18 | delete operand; |
---|
[71] | 19 | |
---|
| 20 | return tree; |
---|
| 21 | } |
---|
| 22 | |
---|
| 23 | }; |
---|
| 24 | }; |
---|
| 25 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.