Last change
on this file since 114 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
|
Line | |
---|
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 | { |
---|
9 | std::map<std::string, counter_t*> * operand = new std::map<std::string, counter_t*>; |
---|
10 | |
---|
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; |
---|
15 | |
---|
16 | Stat_binary_tree * tree = new Stat_binary_tree(expr,operand); |
---|
17 | |
---|
18 | delete operand; |
---|
19 | |
---|
20 | return tree; |
---|
21 | } |
---|
22 | |
---|
23 | }; |
---|
24 | }; |
---|
25 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.