MCPcopy Create free account
hub / github.com/LASzip/LASzip / has_cells

Method has_cells

src/lasinterval.cpp:306–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304}
305
306BOOL 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
332BOOL LASinterval::get_cell(const I32 c_index)
333{

Callers 3

completeMethod · 0.80
printMethod · 0.80
readMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected