Changeset 280 for bdm/stat/libBM.cpp
- Timestamp:
- 02/24/09 14:12:46 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
bdm/stat/libBM.cpp
r278 r280 16 16 //Refer 17 17 int id; 18 RVmap::const_iterator iter = RV_MAP.find ( name ); 18 RVmap::const_iterator iter = RV_MAP.begin(); 19 iter=RV_MAP.find ( name ); 19 20 if ( iter == RV_MAP.end() ) { 20 21 id=RV_MAP.size() +1; 22 //debug 23 /* { 24 cout << endl; 25 RVmap::const_iterator iter = RV_MAP.begin(); 26 for(RVmap::const_iterator iter=RV_MAP.begin(); iter!=RV_MAP.end(); iter++){ 27 cout << "key: " << iter->first << " val: " << iter->second <<endl; 28 } 29 }*/ 30 21 31 RV_MAP.insert ( make_pair ( name,id ) ); //add new rv 22 32 if ( id>=RV_NAMES.length() ) { … … 128 138 int pos = 0; 129 139 for ( i = 0;i < len;i++ ) { 130 idlist.set_subvector ( pos, pos + size ( i ds ( i )) - 1, ids ( i ) );131 tmlist.set_subvector ( pos, pos + size ( i ds ( i )) - 1, times ( i ) );132 pos += size ( i ds ( i ));140 idlist.set_subvector ( pos, pos + size ( i ) - 1, ids ( i ) ); 141 tmlist.set_subvector ( pos, pos + size ( i ) - 1, times ( i ) ); 142 pos += size ( i ); 133 143 } 134 144 return str ( idlist, tmlist );