Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
IDataEdgeSerializable.hpp File Reference
#include "shambase/exception.hpp"
#include "shambase/pre_main_call.hpp"
#include "shambase/type_name_info.hpp"
#include "nlohmann/json_fwd.hpp"
#include "shamsolvergraph/JsonSerializable.hpp"
#include "shamsolvergraph/edge/IDataEdge.hpp"
#include <stdexcept>
Include dependency graph for IDataEdgeSerializable.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  shamrock::solvergraph::IDataEdgeSerializable< T >

Namespaces

namespace  shamrock
 namespace for the main framework

Macros

#define REGISTER_IDATAEDGESERIALIZABLE(Tin)

Functions

 PRE_MAIN_FUNCTION_CALL ([&]() { using T=shamrock::solvergraph::IDataEdgeSerializable< f64 >;auto &instance=shamrock::solvergraph::JsonSerializable_registry::instance();if(!instance.is_type_registered(T::type_name_static())) { instance.register_type< T >(T::type_name_static());} })

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 IDataEdgeSerializable.hpp.

Macro Definition Documentation

◆ REGISTER_IDATAEDGESERIALIZABLE

#define REGISTER_IDATAEDGESERIALIZABLE ( Tin)
Value:
using T = Tin; \
if (!instance.is_type_registered(T::type_name_static())) { \
instance.register_type<T>(T::type_name_static()); \
} \
})
static JsonSerializable_registry & instance()
Access the process-wide registry instance.
#define PRE_MAIN_FUNCTION_CALL(lambda)
Macro to call a lambda or a function before main with a automatically generated unique name.

Definition at line 59 of file IDataEdgeSerializable.hpp.