Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Namespaces | Functions
PatchDataLayerLayout.cpp File Reference
#include "shamrock/patch/PatchDataLayerLayout.hpp"
+ Include dependency graph for PatchDataLayerLayout.cpp:

Go to the source code of this file.

Namespaces

namespace  shamrock
 namespace for the main framework
 

Functions

void shamrock::patch::to_json (nlohmann::json &j, const PatchDataLayerLayout &p)
 Serialize a PatchDataLayerLayout object to a JSON object.
 
void shamrock::patch::from_json (const nlohmann::json &j, PatchDataLayerLayout &p)
 Deserialize a PatchDataLayerLayout object from a JSON object.
 
bool shamrock::patch::operator== (const PatchDataLayerLayout &lhs, const PatchDataLayerLayout &rhs)
 Overloaded equality operator for PatchDataLayerLayout class.
 

Detailed Description

Author
Timothée David–Cléris (tim.s.nosp@m.hamr.nosp@m.ock@p.nosp@m.roto.nosp@m.n.me)
Yona Lapeyre (yona..nosp@m.lape.nosp@m.yre@e.nosp@m.ns-l.nosp@m.yon.f.nosp@m.r) –no git blame–

Definition in file PatchDataLayerLayout.cpp.

Function Documentation

◆ from_json()

void shamrock::patch::from_json ( const nlohmann::json &  j,
PatchDataLayerLayout p 
)

Deserialize a PatchDataLayerLayout object from a JSON object.

This function takes a JSON object and deserializes it to a PatchDataLayerLayout object. It is used to convert a JSON string to a PatchDataLayerLayout object.

Parameters
jThe JSON object to deserialize the PatchDataLayerLayout object from
pThe PatchDataLayerLayout object to deserialize

Definition at line 157 of file PatchDataLayerLayout.cpp.

◆ operator==()

bool shamrock::patch::operator== ( const PatchDataLayerLayout lhs,
const PatchDataLayerLayout rhs 
)

Overloaded equality operator for PatchDataLayerLayout class.

This operator is used to check if two PatchDataLayerLayout objects are equal. It compares the fields of the objects and returns true if they are equal, and false otherwise.

Parameters
lhsThe first PatchDataLayerLayout object to compare
rhsThe second PatchDataLayerLayout object to compare
Returns
true if the two objects are equal, false otherwise

Definition at line 163 of file PatchDataLayerLayout.cpp.

◆ to_json()

void shamrock::patch::to_json ( nlohmann::json &  j,
const PatchDataLayerLayout p 
)

Serialize a PatchDataLayerLayout object to a JSON object.

This function takes a PatchDataLayerLayout object and serializes it to a JSON object. It is used to convert the PatchDataLayerLayout object to a JSON string.

Parameters
jThe JSON object to serialize the PatchDataLayerLayout object to
pThe PatchDataLayerLayout object to serialize

Definition at line 95 of file PatchDataLayerLayout.cpp.

+ Here is the call graph for this function: