summaryrefslogtreecommitdiffhomepage
path: root/src/search-node.hpp
blob: 68d68605fd2205e5bfbd735700f489db1e5ad881 (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
#pragma once
#include "compat/defs.hpp"
#include "search-result.hpp"
#include "point.hpp"
#include <vector>
#include <Corrade/Containers/Pointer.h>

namespace floormat {

template<typename T> struct path_search_result_pool_access;

struct path_search_result::node
{
    friend struct path_search_result;
    template<typename T> friend struct path_search_result_pool_access;

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

    std::vector<point> vec;
    Pointer<node> _next;
};

} // namespace floormat