diff options
| author | untodesu <kirill@untode.su> | 2025-06-28 01:59:49 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-06-28 01:59:49 +0500 |
| commit | 61e5bcef2629e2d68b805a956a96fff264d4f74d (patch) | |
| tree | bca3a94bac79d34e3c0db57c77604f5a823ecbda /deps/include/entt/graph/dot.hpp | |
| parent | 88c01588aa0830e219eaa62588839e4d1e2883ce (diff) | |
| download | voxelius-61e5bcef2629e2d68b805a956a96fff264d4f74d.tar.bz2 voxelius-61e5bcef2629e2d68b805a956a96fff264d4f74d.zip | |
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)
Diffstat (limited to 'deps/include/entt/graph/dot.hpp')
| -rw-r--r-- | deps/include/entt/graph/dot.hpp | 58 |
1 files changed, 0 insertions, 58 deletions
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 <ostream>
-#include <type_traits>
-#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<typename Graph, typename Writer>
-void dot(std::ostream &out, const Graph &graph, Writer writer) {
- static_assert(std::is_base_of_v<directed_tag, typename Graph::graph_category>, "Invalid graph category");
-
- if constexpr(std::is_same_v<typename Graph::graph_category, undirected_tag>) {
- 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<typename Graph::graph_category, undirected_tag>) {
- 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<typename Graph>
-void dot(std::ostream &out, const Graph &graph) {
- return dot(out, graph, [](auto &&...) {});
-}
-
-} // namespace entt
-
-#endif
|
