|
@ -191,6 +191,7 @@ private: |
|
|
[[nodiscard]] uint32_t flat_id() const; |
|
|
[[nodiscard]] uint32_t flat_id() const; |
|
|
|
|
|
|
|
|
public: |
|
|
public: |
|
|
|
|
|
/// Spawn all the unsorted codes of the current group.
|
|
|
static std::vector<codec::RawCode> extend(codec::RawCode raw_code, uint32_t reserve = 0); |
|
|
static std::vector<codec::RawCode> extend(codec::RawCode raw_code, uint32_t reserve = 0); |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
@ -204,9 +205,15 @@ public: |
|
|
// TODO: should we keep it valid? (convert without check)
|
|
|
// TODO: should we keep it valid? (convert without check)
|
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
/// Execute the build process.
|
|
|
void build(); |
|
|
void build(); |
|
|
|
|
|
|
|
|
void build_async(Executor &&executor, Notifier &¬ifier); |
|
|
/// Execute the build process without blocking.
|
|
|
|
|
|
void build_async(Executor &&executor, Notifier &&callback); |
|
|
|
|
|
|
|
|
|
|
|
static info_t to_info_t(codec::ShortCode short_code); |
|
|
|
|
|
|
|
|
|
|
|
static codec::CommonCode from_info_t(info_t info); |
|
|
|
|
|
|
|
|
/// Get the CommonCode using the group info.
|
|
|
/// Get the CommonCode using the group info.
|
|
|
// static codec::CommonCode parse(const info_t &info);
|
|
|
// static codec::CommonCode parse(const info_t &info);
|
|
@ -215,10 +222,6 @@ public: |
|
|
// static info_t encode(const codec::RawCode &raw_code);
|
|
|
// static info_t encode(const codec::RawCode &raw_code);
|
|
|
// static info_t encode(const codec::CommonCode &common_code);
|
|
|
// static info_t encode(const codec::CommonCode &common_code);
|
|
|
|
|
|
|
|
|
static info_t to_info_t(codec::ShortCode short_code); |
|
|
|
|
|
|
|
|
|
|
|
static codec::CommonCode from_info_t(info_t info); |
|
|
|
|
|
|
|
|
|
|
|
private: |
|
|
private: |
|
|
bool available_ = false; |
|
|
bool available_ = false; |
|
|
std::mutex building_ {}; |
|
|
std::mutex building_ {}; |
|
|