FlatCityBuf C++ reader 0.10.0
Native C++17 reader for FlatCityBuf, the cloud-optimized CityJSON format
Loading...
Searching...
No Matches
stree.cpp File Reference
#include <fcb/reader.hpp>
#include <fcb/stree.hpp>
#include <algorithm>
#include <deque>
#include <utility>
#include "detail/checked.hpp"

Go to the source code of this file.

Namespaces

namespace  fcb

Functions

std::vector< StreeLevelBound > fcb::stree_level_bounds (std::uint64_t num_items, std::uint16_t branching_factor)
 Mirrors Stree::generate_level_bounds (stree.rs:474-508).
std::uint64_t fcb::stree_num_nodes (std::uint64_t num_items, std::uint16_t branching_factor)
 Total node count.
std::vector< std::uint64_t > fcb::decode_payload_entry (bytes_view b)
 Decode a payload entry: u32 count then count x u64, all little-endian.
void fcb::encode_payload_entry (std::vector< std::uint8_t > &out, const std::vector< std::uint64_t > &offsets)
 Encode a payload entry: u32 count then count x u64, all little-endian (mirrors PayloadEntry::serialize, payload.rs:42-49).
std::vector< SearchResultItem > fcb::stree_query (RangeReader &reader, const AttrIndexInfo &index, KeyKind kind, Operator op, const KeyValue &value)
 Run one condition against one column's index blob, returning candidate feature offsets (relative to the features section).