Changeset 965
- Timestamp:
- 05/21/10 00:44:25 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/base/bdmbase.cpp
r956 r965 33 33 if ( iter == MAP.end() || name.length() == 0 ) { //add new RV 34 34 id = MAP.size() + 1; 35 //debug36 /* {37 cout << endl;38 str2int_map::const_iterator iter = MAP.begin();39 for(str2int_map::const_iterator iter=MAP.begin(); iter!=MAP.end(); iter++){40 cout << "key: " << iter->first << " val: " << iter->second <<endl;41 }42 }*/43 35 44 36 MAP.insert ( make_pair ( name, id ) ); //add new rv … … 54 46 if ( size > 0 && name.length() > 0 ) { 55 47 bdm_assert ( SIZES ( id ) == size, "RV " + name + " of size " + num2str ( SIZES ( id ) ) + " exists, requested size " + num2str ( size ) + "can not be assigned" ); 56 } 48 } 57 49 } 58 50 return id; … … 243 235 std::ostream &operator<< ( std::ostream &os, const RV &rv ) { 244 236 int id; 237 os << "["; 245 238 for ( int i = 0; i < rv.len ; i++ ) { 246 239 id = rv.ids ( i ); 247 os << id << "(" << RV::SIZES ( id ) << ")" << // id(size)=248 "=" << RV::NAMES ( id ) << "_{" << rv.times ( i ) << "}; "; //name_{time}249 }240 os << RV::NAMES ( id ) << "(" << RV::SIZES ( id ) << ")_{" << rv.times ( i ) << "}; "; //name_{time} 241 } 242 os << "]"; 250 243 return os; 251 244 } … … 497 490 downsize = v2v_down.length() + h2v_down.length(); 498 491 upsize = v2v_up.length(); 492 499 493 } 500 494