AI 24/25 Project Software
Documentation for the AI 24/25 course programming project software
Loading...
Searching...
No Matches
search_node_info.h
1#ifndef SEARCH_NODE_INFO_H
2#define SEARCH_NODE_INFO_H
3
4#include "downward/operator_id.h"
5#include "downward/state_id.h"
6
7// For documentation on classes relevant to storing and working with registered
8// states see the file state_registry.h.
9
10struct SearchNodeInfo {
11 enum NodeStatus { NEW = 0, OPEN = 1, CLOSED = 2, DEAD_END = 3 };
12
13 unsigned int status : 2;
14 int g : 30;
15 StateID parent_state_id;
16 OperatorID creating_operator;
17 int real_g;
18
19 SearchNodeInfo()
20 : status(NEW)
21 , g(-1)
22 , parent_state_id(StateID::no_state)
23 , creating_operator(-1)
24 , real_g(-1)
25 {
26 }
27};
28
29#endif