Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
IEdge.hpp
Go to the documentation of this file.
1// -------------------------------------------------------//
2//
3// SHAMROCK code for hydrodynamics
4// Copyright (c) 2021-2026 Timothée David--Cléris <tim.shamrock@proton.me>
5// SPDX-License-Identifier: CeCILL Free Software License Agreement v2.1
6// Shamrock is licensed under the CeCILL 2.1 License, see LICENSE for more information
7//
8// -------------------------------------------------------//
9
10#pragma once
11
19#include "shambase/WithUUID.hpp"
22#include <string>
23
24namespace shamrock::solvergraph {
25
26 class INode;
27
28 class IEdge : public shambase::WithUUID<IEdge, u64>, public IFreeable {
29 public:
30 inline std::string get_label() const { return _impl_get_dot_label(); }
31 inline std::string get_tex_symbol() const { return _impl_get_tex_symbol(); }
32
33 virtual std::string _impl_get_dot_label() const = 0;
34 virtual std::string _impl_get_tex_symbol() const = 0;
35
36 virtual ~IEdge() {}
37 };
38
39} // namespace shamrock::solvergraph
A class that provides unique identifiers (UUID) to instances.
Definition WithUUID.hpp:37
Interface for data edges that can free their allocated memory.
Definition IFreeable.hpp:28