Loading...
Searching...
No Matches
opennn::JsonDocument Class Reference

#include <opennn/core/json.h>

Public Member Functions

void load (const std::filesystem::path &)
 
void save (const std::filesystem::path &, int indent=2) const
 
void set_root (Json new_root)
 
Json & get_root () noexcept
 
const Json & get_root () const noexcept
 
const Json * first_child (std::string_view name) const
 
const Json * first_child () const noexcept
 

Static Public Member Functions

static JsonDocument wrap (std::string_view, Json)
 

Member Function Documentation

◆ first_child() [1/2]

const Json * opennn::JsonDocument::first_child ( ) const
inlinenoexcept

◆ first_child() [2/2]

const Json * opennn::JsonDocument::first_child ( std::string_view name) const
inline

◆ get_root() [1/2]

const Json & opennn::JsonDocument::get_root ( ) const
inlinenoexcept

◆ get_root() [2/2]

Json & opennn::JsonDocument::get_root ( )
inlinenoexcept

◆ load()

void opennn::JsonDocument::load ( const std::filesystem::path & )

◆ save()

void opennn::JsonDocument::save ( const std::filesystem::path & ,
int indent = 2 ) const

◆ set_root()

void opennn::JsonDocument::set_root ( Json new_root)
inline

◆ wrap()

static JsonDocument opennn::JsonDocument::wrap ( std::string_view ,
Json  )
static