Browse Source

update: header file of Group

master
Dnomd343 4 months ago
parent
commit
3e939267a7
  1. 13
      src/core/group/group.h
  2. 1
      src/core/group/internal/group_cases.cc

13
src/core/group/group.h

@ -191,6 +191,7 @@ private:
[[nodiscard]] uint32_t flat_id() const;
public:
/// Spawn all the unsorted codes of the current group.
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)
};
/// Execute the build process.
void build();
void build_async(Executor &&executor, Notifier &&notifier);
/// 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.
// 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::CommonCode &common_code);
static info_t to_info_t(codec::ShortCode short_code);
static codec::CommonCode from_info_t(info_t info);
private:
bool available_ = false;
std::mutex building_ {};

1
src/core/group/internal/group_cases.cc

@ -1,4 +1,5 @@
#include <iostream>
#include <algorithm>
#include "group/group.h"

Loading…
Cancel
Save