| 304 | } |
| 305 | |
| 306 | BOOL LASinterval::has_cells() |
| 307 | { |
| 308 | my_cell_hash::iterator hash_element; |
| 309 | if (last_index == I32_MIN) |
| 310 | { |
| 311 | hash_element = ((my_cell_hash*)cells)->begin(); |
| 312 | } |
| 313 | else |
| 314 | { |
| 315 | hash_element = ((my_cell_hash*)cells)->find(last_index); |
| 316 | hash_element++; |
| 317 | } |
| 318 | if (hash_element == ((my_cell_hash*)cells)->end()) |
| 319 | { |
| 320 | last_index = I32_MIN; |
| 321 | current_cell = 0; |
| 322 | return FALSE; |
| 323 | } |
| 324 | last_index = (*hash_element).first; |
| 325 | index = (*hash_element).first; |
| 326 | full = (*hash_element).second->full; |
| 327 | total = (*hash_element).second->total; |
| 328 | current_cell = (*hash_element).second; |
| 329 | return TRUE; |
| 330 | } |
| 331 | |
| 332 | BOOL LASinterval::get_cell(const I32 c_index) |
| 333 | { |