Unravel Engine C++ Reference
Loading...
Searching...
No Matches
any_path.cpp
Go to the documentation of this file.
1#include "any_path.hpp"
2
3using namespace generator;
4
5any_path::base::~base() = default;
6
7any_path::any_path(const any_path& that) : base_{that.base_->clone()}
8{
9}
10
12{
13 base_ = that.base_->clone();
14 return *this;
15}
16
18{
19 return base_->edges();
20}
21
23{
24 return base_->vertices();
25}
A type erasing container that can store any path.
Definition any_path.hpp:15
any_path & operator=(const any_path &that)
Definition any_path.cpp:11
any_generator< path_vertex_t > vertices() const noexcept
Definition any_path.cpp:22
any_path(path_t path)
Definition any_path.hpp:18
any_generator< edge_t > edges() const noexcept
Definition any_path.cpp:17