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