CellModules
BaseExportable::Exportable Struct Reference

#include <exportable.hpp>

Public Types

using json = nlohmann::json
 
template<typename T >
using KV = std::pair< std::string, T >
 

Public Member Functions

 Exportable ()
 
template<typename T >
 Exportable (const T &)
 
template<typename T , typename... Args>
json saveJ (const std::string &name, const T &var, Args &&... args) const
 
template<typename T >
json saveJ (const std::string &name, const T &var) const
 
json to_json () const
 

Detailed Description

Definition at line 3390 of file exportable.hpp.

Member Typedef Documentation

◆ json

◆ KV

template<typename T >
using BaseExportable::Exportable::KV = std::pair<std::string, T>

Definition at line 3392 of file exportable.hpp.

Constructor & Destructor Documentation

◆ Exportable() [1/2]

BaseExportable::Exportable::Exportable ( )
inline

Definition at line 3393 of file exportable.hpp.

◆ Exportable() [2/2]

template<typename T >
BaseExportable::Exportable::Exportable ( const T &  )
inline

Definition at line 3394 of file exportable.hpp.

Member Function Documentation

◆ saveJ() [1/2]

template<typename T >
json BaseExportable::Exportable::saveJ ( const std::string &  name,
const T &  var 
) const
inline

Definition at line 3404 of file exportable.hpp.

◆ saveJ() [2/2]

template<typename T , typename... Args>
json BaseExportable::Exportable::saveJ ( const std::string &  name,
const T &  var,
Args &&...  args 
) const
inline

Definition at line 3397 of file exportable.hpp.

◆ to_json()

json BaseExportable::Exportable::to_json ( ) const
inline

Definition at line 3409 of file exportable.hpp.


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