| 355 | |
| 356 | template <typename Iter> |
| 357 | uint32_t Classificator::GetTypeByPathImpl(Iter beg, Iter end) const |
| 358 | { |
| 359 | ClassifObject const * p = GetRoot(); |
| 360 | |
| 361 | uint32_t type = ftype::GetEmptyValue(); |
| 362 | |
| 363 | while (beg != end) |
| 364 | { |
| 365 | ClassifObjectPtr ptr = p->BinaryFind(*beg++); |
| 366 | if (!ptr) |
| 367 | return INVALID_TYPE; |
| 368 | |
| 369 | ftype::PushValue(type, ptr.GetIndex()); |
| 370 | p = ptr.get(); |
| 371 | } |
| 372 | |
| 373 | return type; |
| 374 | } |
| 375 | |
| 376 | uint32_t Classificator::GetTypeByPathSafe(std::vector<std::string_view> const & path) const |
| 377 | { |
nothing calls this directly
no test coverage detected