Graphle 1.0.0
A C++20 header-only graph library
Loading...
Searching...
No Matches
constraint_debug_helper.hpp
Go to the documentation of this file.
1#pragma once
2
4#include <meta/value.hpp>
5
6
7namespace graphle::detail {
14 template <typename T> struct invalid_is_directed_value {};
16 template <typename Vertex, typename Get> struct invalid_vertex_getter {};
18 template <typename Vertex, typename Get> struct invalid_edge_getter {};
20 template <typename Vertex, typename Get> struct invalid_in_edge_getter {};
22 template <typename Vertex, typename Get> struct invalid_out_edge_getter {};
23
24
31 #ifdef GRAPHLE_DOXYGEN
32 #define GRAPHLE_NO_STATIC_ASSERT "Not Defined"
33 #endif
34
35
55 template <
56 typename Vertex,
57 typename IsDirected,
58 typename GetVertices,
59 typename GetEdges,
60 typename GetOutEdges,
61 typename GetInEdges
62 > consteval auto graph_constraints_check(void) {
63 #ifndef GRAPHLE_NO_STATIC_ASSERT
69 #endif
70
71
74 }
75
76 else if constexpr (!maybe_vertex_getter<GetVertices, Vertex>) {
78 }
79
80 else if constexpr (!maybe_edge_getter<GetEdges, Vertex>) {
82 }
83
86 }
87
90 }
91
92 else return all_constraints_satisfied {};
93 }
94}
consteval auto graph_constraints_check(void)