5#ifndef FLUTTER_SHELL_PLATFORM_WINDOWS_SEQUENTIAL_ID_GENERATOR_H_
6#define FLUTTER_SHELL_PLATFORM_WINDOWS_SEQUENTIAL_ID_GENERATOR_H_
9#include <unordered_map>
11#include "flutter/fml/macros.h"
45 typedef std::unordered_map<uint32_t, uint32_t> IdMap;
47 uint32_t GetNextAvailableId();
49 void UpdateNextAvailableIdAfterRelease(uint32_t
id);
54 const uint32_t min_id_;
55 const uint32_t max_id_;
56 uint32_t min_available_id_;
bool HasGeneratedIdFor(uint32_t number) const
void ReleaseId(uint32_t id)
SequentialIdGenerator(uint32_t min_id, uint32_t max_id)
void ReleaseNumber(uint32_t number)
uint32_t GetGeneratedId(uint32_t number)