summaryrefslogtreecommitdiffhomepage
path: root/src/search-node.hpp
blob: 06bef04f14adc532496859a3bdd3e0be1b2a298b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#pragma once
#include "compat/defs.hpp"
#include "search-result.hpp"
#include "point.hpp"
#include <vector>
#include <Corrade/Containers/Pointer.h>

namespace floormat {

struct path_search_result::pair
{
    point pt;
    uint32_t length = 0;
};

struct path_search_result::node
{
    friend struct path_search_result;
    friend struct test_app;

    node() noexcept;
    fm_DECLARE_DELETED_COPY_ASSIGNMENT(node);
    fm_DECLARE_DEFAULT_MOVE_ASSIGNMENT_(node);

    std::vector<point> vec;
    std::vector<pair> vec_;

private:
    Pointer<node> _next;
};

} // namespace floormat