|
@ -2,6 +2,7 @@ |
|
|
#include "raw_code.h" |
|
|
#include "raw_code.h" |
|
|
|
|
|
|
|
|
using klotski::RawCode; |
|
|
using klotski::RawCode; |
|
|
|
|
|
using klotski::RawCodes; |
|
|
using klotski::RawCodeExp; |
|
|
using klotski::RawCodeExp; |
|
|
using klotski::CommonCode; |
|
|
using klotski::CommonCode; |
|
|
using klotski::CommonCodes; |
|
|
using klotski::CommonCodes; |
|
@ -46,8 +47,8 @@ RawCode RawCode::from_common_code(const std::string &common_code) { |
|
|
|
|
|
|
|
|
/// ---------------------------- Batch conversion -----------------------------
|
|
|
/// ---------------------------- Batch conversion -----------------------------
|
|
|
|
|
|
|
|
|
CommonCodes RawCode::convert(const RawCodes &raw_codes) noexcept { |
|
|
RawCodes RawCode::convert(const CommonCodes &common_codes) noexcept { |
|
|
return {raw_codes.begin(), raw_codes.end()}; |
|
|
return {common_codes.begin(), common_codes.end()}; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// ----------------------------- Basic Functions -----------------------------
|
|
|
/// ----------------------------- Basic Functions -----------------------------
|
|
|