Changeset 146 for trunk/IPs/systemC/processor/Morpheo/Behavioural/include
- Timestamp:
- Feb 1, 2011, 9:57:54 PM (14 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/include
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Allocation.h
r145 r146 141 141 } while (0) 142 142 143 #define DELETE0(var) DELETE 1_COND(var,true)143 #define DELETE0(var) DELETE0_COND(var,true) 144 144 #define DELETE1(var,s1) DELETE1_COND(var,s1,true) 145 145 #define DELETE2(var,s1,s2) DELETE2_COND(var,s1,s2,true) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Stat_binary_tree.h
r88 r146 1 #ifdef STATISTICS1 //#ifdef STATISTICS 2 2 #ifndef morpheo_behavioural_Stat_binary_tree_h 3 3 #define morpheo_behavioural_Stat_binary_tree_h … … 72 72 }; 73 73 #endif 74 #endif74 //#endif -
trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Stat_type.h
r144 r146 1 #ifdef STATISTICS2 1 #ifndef morpheo_behavioural_Stat_type_h 3 2 #define morpheo_behavioural_Stat_type_h … … 12 11 namespace behavioural { 13 12 14 typedef enum{TYPE_VARIABLE, TYPE_COUNTER} counter_type_t;15 16 13 typedef double counter_t ; 17 14 18 15 typedef enum{add, sub, mul, div, inc, dec} operator_t; 16 17 #ifdef STATISTICS 18 19 typedef enum{TYPE_VARIABLE, TYPE_COUNTER} counter_type_t; 19 20 20 21 //typedef std::pair<operator_t, std::string> pair_operator_string_t; … … 79 80 }; 80 81 82 #endif 83 81 84 }; 82 85 }; 83 86 #endif 84 #endif -
trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Types.h
r139 r146 114 114 115 115 typedef enum 116 { 117 PHT_SCHEME_COUNTER, 118 PHT_SCHEME_FSM 119 } Tpht_scheme_t; 120 121 typedef enum 116 122 { 117 123 MANAGE_EVENT_WAIT_ALL, … … 314 320 }; 315 321 322 323 template<> inline std::string toString<morpheo::behavioural::Tpht_scheme_t>(const morpheo::behavioural::Tpht_scheme_t& x) 324 { 325 switch (x) 326 { 327 case morpheo::behavioural::PHT_SCHEME_COUNTER : return "counter"; break; 328 case morpheo::behavioural::PHT_SCHEME_FSM : return "fsm" ; break; 329 default : return ""; break; 330 } 331 }; 332 333 template<> inline morpheo::behavioural::Tpht_scheme_t fromString<morpheo::behavioural::Tpht_scheme_t>(const std::string& x) 334 { 335 if ( (x.compare(toString(static_cast<uint32_t>(morpheo::behavioural::PHT_SCHEME_COUNTER ))) == 0) or 336 (x.compare(toString( morpheo::behavioural::PHT_SCHEME_COUNTER )) == 0)) 337 return morpheo::behavioural::PHT_SCHEME_COUNTER; 338 if ( (x.compare(toString(static_cast<uint32_t>(morpheo::behavioural::PHT_SCHEME_FSM))) == 0) or 339 (x.compare(toString( morpheo::behavioural::PHT_SCHEME_FSM )) == 0)) 340 return morpheo::behavioural::PHT_SCHEME_FSM; 341 342 throw (ErrorMorpheo ("<fromString> : Unknow string : \""+x+"\"")); 343 }; 344 345 316 346 template<> inline std::string toString<morpheo::behavioural::Trat_scheme_t>(const morpheo::behavioural::Trat_scheme_t& x) 317 347 {
Note: See TracChangeset
for help on using the changeset viewer.