マイクロマウスの迷路を扱うクラスを定義
[詳解]
#include <array>
#include <bitset>
#include <cmath>
#include <cstdint>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
[ソースコード]
|
| | MazeLib |
| | 迷路探索ライブラリはすべてこの名前空間に格納されている。
|
| |
|
| #define | MAZE_DEBUG_PROFILING 0 |
| |
| #define | MAZE_DEBUG_PROFILING_START(id) |
| |
| #define | MAZE_DEBUG_PROFILING_END(id) |
| |
| #define | C_RE "\e[31m" |
| | ANSI Escape Sequence RED [詳解]
|
| |
| #define | C_GR "\e[32m" |
| | ANSI Escape Sequence GREEN [詳解]
|
| |
| #define | C_YE "\e[33m" |
| | ANSI Escape Sequence YELLOW [詳解]
|
| |
| #define | C_BL "\e[34m" |
| | ANSI Escape Sequence BLUE [詳解]
|
| |
| #define | C_MA "\e[35m" |
| | ANSI Escape Sequence MAGENTA [詳解]
|
| |
| #define | C_CY "\e[36m" |
| | ANSI Escape Sequence CYAN [詳解]
|
| |
| #define | C_NO "\e[0m" |
| | ANSI Escape Sequence RESET [詳解]
|
| |
| #define | MAZE_LOG_LEVEL 4 |
| | ログ出力の選択 [詳解]
|
| |
| #define | MAZE_LOG_STREAM_BASE(s, l, c) (s << c "[" l "][" __FILE__ ":" << __LINE__ << "]" C_NO "\t") |
| |
| #define | MAZE_LOGE MAZE_LOG_STREAM_BASE(std::cout, "E", C_RE) |
| |
| #define | MAZE_LOGW MAZE_LOG_STREAM_BASE(std::cout, "W", C_YE) |
| |
| #define | MAZE_LOGI MAZE_LOG_STREAM_BASE(std::cout, "I", C_GR) |
| |
| #define | MAZE_LOGD MAZE_LOG_STREAM_BASE(std::cout, "D", C_BL) |
| |
◆ C_BL
ANSI Escape Sequence BLUE
◆ C_CY
ANSI Escape Sequence CYAN
◆ C_GR
ANSI Escape Sequence GREEN
◆ C_MA
ANSI Escape Sequence MAGENTA
◆ C_NO
ANSI Escape Sequence RESET
◆ C_RE
◆ C_YE
ANSI Escape Sequence YELLOW
◆ MAZE_DEBUG_PROFILING
| #define MAZE_DEBUG_PROFILING 0 |
◆ MAZE_DEBUG_PROFILING_END
| #define MAZE_DEBUG_PROFILING_END |
( |
|
id | ) |
|
◆ MAZE_DEBUG_PROFILING_START
| #define MAZE_DEBUG_PROFILING_START |
( |
|
id | ) |
|
◆ MAZE_LOG_LEVEL
ログ出力の選択
0: None, 1: Error, 2: Warn, 3: Info, 4: Debug
◆ MAZE_LOG_STREAM_BASE
| #define MAZE_LOG_STREAM_BASE |
( |
|
s, |
|
|
|
l, |
|
|
|
c |
|
) |
| (s << c "[" l "][" __FILE__ ":" << __LINE__ << "]" C_NO "\t") |
◆ MAZE_LOGD
◆ MAZE_LOGE
◆ MAZE_LOGI
◆ MAZE_LOGW