Unravel Engine C++ Reference
Loading...
Searching...
No Matches
empty_shape.cpp
Go to the documentation of this file.
1#include "empty_shape.hpp"
2
3#include <stdexcept>
4
5using namespace generator;
6
7empty_shape_t::edges_t::edges_t() = default;
8
10{
11 throw std::out_of_range("Called generate on an EmptyShape!");
12}
13
14bool empty_shape_t::edges_t::done() const noexcept
15{
16 return true;
17}
18
20{
21 throw std::out_of_range("Called next on an EmptyShape!");
22}
23
24empty_shape_t::vertices_t::vertices_t()
25{
26}
27
29{
30 throw std::out_of_range("Called generate on an EmptyShape!");
31}
32
34{
35 return true;
36}
37
39{
40 throw std::out_of_range("Called next on an EmptyShape!");
41}
42
44{
45 return {};
46}
47
49{
50 return {};
51}
edges_t edges() const noexcept
vertices_t vertices() const noexcept