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

Go to the source code of this file.

Classes

struct  shamrock::scheduler::SerialPatchNode< vec >
class  shamrock::scheduler::LinkedTreeNode
 Node information in the PatchTree link list. More...
class  shamrock::scheduler::PatchTreeNode
 Node information in the patchtree + held patch info. More...

Namespaces

namespace  shamrock
 namespace for the main framework

Functions

bool shamrock::scheduler::operator== (const LinkedTreeNode &lhs, const LinkedTreeNode &rhs)
 Equal operator for LinkedTreeNode.
bool shamrock::scheduler::operator== (const PatchTreeNode &lhs, const PatchTreeNode &rhs)
 Equal operator for PatchTreeNode.
void shamrock::scheduler::to_json (nlohmann::json &j, const LinkedTreeNode &p)
 Serializes a LinkedTreeNode object to a JSON object.
void shamrock::scheduler::from_json (const nlohmann::json &j, LinkedTreeNode &p)
 Deserializes a JSON object to a LinkedTreeNode object.
void shamrock::scheduler::to_json (nlohmann::json &j, const PatchTreeNode &p)
 Serializes a PatchTreeNode object to a JSON object.
void shamrock::scheduler::from_json (const nlohmann::json &j, PatchTreeNode &p)
 Deserializes a JSON object to a PatchTreeNode 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 PatchTreeNode.hpp.

Function Documentation

◆ from_json() [1/2]

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

Deserializes a JSON object to a LinkedTreeNode object.

Parameters
jThe JSON object to deserialize from.
pThe LinkedTreeNode object to deserialize to.

Definition at line 162 of file PatchTreeNode.hpp.

◆ from_json() [2/2]

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

Deserializes a JSON object to a PatchTreeNode object.

Parameters
jThe JSON object to deserialize from.
pThe PatchTreeNode object to deserialize to.

Definition at line 196 of file PatchTreeNode.hpp.

◆ operator==() [1/2]

bool shamrock::scheduler::operator== ( const LinkedTreeNode & lhs,
const LinkedTreeNode & rhs )
inline

Equal operator for LinkedTreeNode.

Definition at line 60 of file PatchTreeNode.hpp.

◆ operator==() [2/2]

bool shamrock::scheduler::operator== ( const PatchTreeNode & lhs,
const PatchTreeNode & rhs )
inline

Equal operator for PatchTreeNode.

Definition at line 119 of file PatchTreeNode.hpp.

◆ to_json() [1/2]

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

Serializes a LinkedTreeNode object to a JSON object.

Parameters
jThe JSON object to serialize to.
pThe LinkedTreeNode object to serialize.

Definition at line 146 of file PatchTreeNode.hpp.

◆ to_json() [2/2]

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

Serializes a PatchTreeNode object to a JSON object.

Parameters
jThe JSON object to serialize to.
pThe PatchTreeNode object to serialize.

Definition at line 176 of file PatchTreeNode.hpp.