Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
PatchTree.hpp File Reference
#include "shamrock/patch/Patch.hpp"
#include "shamrock/scheduler/PatchTreeNode.hpp"
#include <nlohmann/json.hpp>
#include <unordered_set>
Include dependency graph for PatchTree.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  shamrock::scheduler::PatchTree
 Patch Tree : Tree structure organisation for an abstract list of patches Nb : this tree is compatible with multiple roots cf value in roots_id. More...

Namespaces

namespace  shamrock
 namespace for the main framework

Functions

void shamrock::scheduler::to_json (nlohmann::json &j, const PatchTree &p)
 Serializes a PatchTree object into a JSON object.
void shamrock::scheduler::from_json (const nlohmann::json &j, PatchTree &p)
 Deserializes a JSON object into a PatchTree object.

Detailed Description

Author
Timothée David–Cléris (tim.s.nosp@m.hamr.nosp@m.ock@p.nosp@m.roto.nosp@m.n.me)

Definition in file PatchTree.hpp.

Function Documentation

◆ from_json()

void shamrock::scheduler::from_json ( const nlohmann::json & j,
PatchTree & p )

Deserializes a JSON object into a PatchTree object.

Parameters
jThe JSON object to deserialize.
pThe PatchTree object to deserialize into.

Definition at line 370 of file PatchTree.cpp.

Here is the call graph for this function:

◆ to_json()

void shamrock::scheduler::to_json ( nlohmann::json & j,
const PatchTree & p )

Serializes a PatchTree object into a JSON object.

Parameters
jThe JSON object to serialize the PatchTree into.
pThe PatchTree object to serialize.

Definition at line 362 of file PatchTree.cpp.

Here is the call graph for this function: