Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Indexes.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
21#include <memory>
22
23namespace shamrock::solvergraph {
24
25 template<class Tint>
26 class Indexes : public IEdgeNamed {
27 public:
28 using IEdgeNamed::IEdgeNamed;
30
31 inline virtual void free_alloc() { indexes = {}; }
32
33 static std::shared_ptr<Indexes<Tint>> make_shared(std::string name, std::string texsymbol) {
34 return std::make_shared<Indexes<Tint>>(name, texsymbol);
35 }
36 };
37
38} // namespace shamrock::solvergraph
Represents a collection of objects distributed across patches identified by a u64 id.
virtual void free_alloc()
Free allocated memory.
Definition Indexes.hpp:31