From 61e5bcef2629e2d68b805a956a96fff264d4f74d Mon Sep 17 00:00:00 2001 From: untodesu Date: Sat, 28 Jun 2025 01:59:49 +0500 Subject: Restructure dependencies and update to C++20 - Nuked static_assert from almost everywhere in the project - Nuked binary dependency support. Might add one later though - Separated dependency headers into a separate include subdirectory - Grafted a thirdpartylegalnotices.txt generator from RITEG - Pushed development snapshot version to 2126 (26th week of 2025) --- deps/include/entt/graph/dot.hpp | 58 ----------------------------------------- 1 file changed, 58 deletions(-) delete mode 100644 deps/include/entt/graph/dot.hpp (limited to 'deps/include/entt/graph/dot.hpp') diff --git a/deps/include/entt/graph/dot.hpp b/deps/include/entt/graph/dot.hpp deleted file mode 100644 index 4671aa8..0000000 --- a/deps/include/entt/graph/dot.hpp +++ /dev/null @@ -1,58 +0,0 @@ -#ifndef ENTT_GRAPH_DOT_HPP -#define ENTT_GRAPH_DOT_HPP - -#include -#include -#include "fwd.hpp" - -namespace entt { - -/** - * @brief Outputs a graph in dot format. - * @tparam Graph Graph type, valid as long as it exposes edges and vertices. - * @tparam Writer Vertex decorator type. - * @param out A standard output stream. - * @param graph The graph to output. - * @param writer Vertex decorator object. - */ -template -void dot(std::ostream &out, const Graph &graph, Writer writer) { - static_assert(std::is_base_of_v, "Invalid graph category"); - - if constexpr(std::is_same_v) { - out << "graph{"; - } else { - out << "digraph{"; - } - - for(auto &&vertex: graph.vertices()) { - out << vertex << "["; - writer(out, vertex); - out << "];"; - } - - for(auto [lhs, rhs]: graph.edges()) { - if constexpr(std::is_same_v) { - out << lhs << "--" << rhs << ";"; - } else { - out << lhs << "->" << rhs << ";"; - } - } - - out << "}"; -} - -/** - * @brief Outputs a graph in dot format. - * @tparam Graph Graph type, valid as long as it exposes edges and vertices. - * @param out A standard output stream. - * @param graph The graph to output. - */ -template -void dot(std::ostream &out, const Graph &graph) { - return dot(out, graph, [](auto &&...) {}); -} - -} // namespace entt - -#endif -- cgit