Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
shamrock::solvergraph::IDataEdgeSerializable< T > Class Template Reference
Inheritance diagram for shamrock::solvergraph::IDataEdgeSerializable< T >:
Collaboration diagram for shamrock::solvergraph::IDataEdgeSerializable< T >:

Public Member Functions

void _impl_to_json (nlohmann::json &j) const override
 Write derived-class fields into a JSON object.
std::string type_name () const override
 Return the type discriminator string for this class.
Public Member Functions inherited from shamrock::solvergraph::IDataEdge< T >
virtual void free_alloc ()
 Free allocated memory.
 IEdgeNamed (std::string name, std::string texsymbol)
Public Member Functions inherited from shamrock::solvergraph::IEdgeNamed
 IEdgeNamed (std::string name, std::string texsymbol)
virtual std::string _impl_get_dot_label () const
virtual std::string _impl_get_tex_symbol () const
virtual std::string get_raw_tex_symbol () const
Public Member Functions inherited from shamrock::solvergraph::IEdge
std::string get_label () const
std::string get_tex_symbol () const
Public Member Functions inherited from shambase::WithUUID< IEdge, u64 >
u64 get_uuid () const
 Get the uuid of the class.
 WithUUID ()
 Constructor of the class.
Public Member Functions inherited from shamrock::solvergraph::IFreeable
virtual ~IFreeable ()
 Virtual destructor.
Public Member Functions inherited from shamrock::solvergraph::JsonSerializable
void to_json (nlohmann::json &j) const
 Write this object to JSON, including the "type" discriminator.

Static Public Member Functions

static IDataEdgeSerializable< T > from_json (const nlohmann::json &j)
static std::string type_name_static ()
Static Public Member Functions inherited from shamrock::solvergraph::IDataEdge< T >
static std::shared_ptr< IDataEdge< T > > make_shared (std::string name, std::string texsymbol)
Static Public Member Functions inherited from shamrock::solvergraph::JsonSerializable
static std::unique_ptr< JsonSerializablefrom_json (const nlohmann::json &j)
 Reconstruct a registered type from JSON.

Additional Inherited Members

Public Attributes inherited from shamrock::solvergraph::IDataEdge< T >
data = {}
Protected Attributes inherited from shambase::WithUUID< IEdge, u64 >
u64 uuid
 The unique identifier of the class.

Detailed Description

template<class T>
class shamrock::solvergraph::IDataEdgeSerializable< T >

Definition at line 30 of file IDataEdgeSerializable.hpp.

Member Function Documentation

◆ _impl_to_json()

template<class T>
void shamrock::solvergraph::IDataEdgeSerializable< T >::_impl_to_json ( nlohmann::json & j) const
inlineoverridevirtual

Write derived-class fields into a JSON object.

Must not be responsible for the "type" discriminator; to_json sets it after this call.

Parameters
jJSON object to fill

Implements shamrock::solvergraph::JsonSerializable.

Definition at line 35 of file IDataEdgeSerializable.hpp.

◆ from_json()

template<class T>
IDataEdgeSerializable< T > shamrock::solvergraph::IDataEdgeSerializable< T >::from_json ( const nlohmann::json & j)
inlinestatic

Definition at line 41 of file IDataEdgeSerializable.hpp.

◆ type_name()

template<class T>
std::string shamrock::solvergraph::IDataEdgeSerializable< T >::type_name ( ) const
inlineoverridevirtual

Return the type discriminator string for this class.

Must match the name used in JsonSerializable_registry::register_type and the "type" field in JSON.

Implements shamrock::solvergraph::JsonSerializable.

Definition at line 54 of file IDataEdgeSerializable.hpp.

◆ type_name_static()

template<class T>
std::string shamrock::solvergraph::IDataEdgeSerializable< T >::type_name_static ( )
inlinestatic

Definition at line 50 of file IDataEdgeSerializable.hpp.


The documentation for this class was generated from the following file: