Browse Source

update: noexcept for AllCases status function

master
Dnomd343 2 years ago
parent
commit
366dccba89
  1. 2
      src/klotski_core/all_cases/all_cases.cc
  2. 2
      src/klotski_core/all_cases/all_cases.h
  3. 2
      src/klotski_core/all_cases/basic_ranges.cc
  4. 2
      src/klotski_core/all_cases/basic_ranges.h

2
src/klotski_core/all_cases/all_cases.cc

@ -18,7 +18,7 @@ const std::vector<uint32_t> (&AllCases::fetch())[16] {
return data_; // return const reference
}
AllCases::Status AllCases::status() {
AllCases::Status AllCases::status() noexcept {
if (available_) {
return AVAILABLE; // data already built
}

2
src/klotski_core/all_cases/all_cases.h

@ -42,7 +42,7 @@ public:
static void build();
/// Get current status of AllCases.
static Status status();
static Status status() noexcept;
/// Blocking access to constructed data.
static const std::vector<uint32_t> (&fetch())[16];

2
src/klotski_core/all_cases/basic_ranges.cc

@ -19,7 +19,7 @@ const std::vector<uint32_t>& BasicRanges::fetch() {
return data_; // return const reference
}
BasicRanges::Status BasicRanges::status() {
BasicRanges::Status BasicRanges::status() noexcept {
if (available_) {
return AVAILABLE; // data already built
}

2
src/klotski_core/all_cases/basic_ranges.h

@ -49,7 +49,7 @@ public:
static void build();
/// Get current status of BasicRanges.
static Status status();
static Status status() noexcept;
/// Blocking access to constructed data.
static const std::vector<uint32_t>& fetch();

Loading…
Cancel
Save