mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 21:13:35 +00:00
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
30 lines
770 B
C++
30 lines
770 B
C++
#pragma once
|
|
|
|
#include "generator/feature_builder.hpp"
|
|
|
|
#include "base/thread_safe_queue.hpp"
|
|
|
|
#include <cstddef>
|
|
#include <optional>
|
|
#include <utility>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace generator
|
|
{
|
|
size_t static const kAffiliationsBufferSize = 512;
|
|
|
|
struct ProcessedData
|
|
{
|
|
explicit ProcessedData(feature::FeatureBuilder::Buffer && buffer,
|
|
std::vector<std::string> && affiliations)
|
|
: m_buffer(std::move(buffer)), m_affiliations(std::move(affiliations)) {}
|
|
|
|
feature::FeatureBuilder::Buffer m_buffer;
|
|
std::vector<std::string> m_affiliations;
|
|
};
|
|
|
|
using FeatureProcessorChunk = std::optional<std::vector<ProcessedData>>;
|
|
using FeatureProcessorQueue = threads::ThreadSafeQueue<FeatureProcessorChunk>;
|
|
} // namespace generator
|