MCPcopy Create free account
hub / github.com/comaps/comaps / ForEachPathObject

Method ForEachPathObject

libs/indexer/classificator.cpp:420–429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

418
419template <class ToDo>
420void Classificator::ForEachPathObject(uint32_t type, ToDo && toDo) const
421{
422 ClassifObject const * p = &m_root;
423 uint8_t const level = ftype::GetLevel(type);
424 for (uint8_t i = 0; i < level; ++i)
425 {
426 p = p->GetObject(ftype::GetValue(type, i));
427 toDo(p);
428 }
429}
430
431ClassifObject const * Classificator::GetObject(uint32_t type) const
432{

Callers

nothing calls this directly

Calls 3

GetLevelFunction · 0.85
GetValueFunction · 0.85
GetObjectMethod · 0.80

Tested by

no test coverage detected