yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::Json Class Reference

#include <json.h>

Classes

struct  const_iterator
 
class  exception
 
struct  items_view
 
struct  iterator
 

Public Member Functions

 Json ()=default
 
 Json (std::nullptr_t)
 
 Json (bool)
 
 Json (int)
 
 Json (double)
 
 Json (const char *)
 
 Json (const std::string &)
 
template<typename T >
 Json (const T &)
 
template<typename T >
Jsonoperator= (const T &)
 
Jsonoperator[] (const std::string &)
 
const Jsonoperator[] (const std::string &) const
 
Jsonoperator[] (size_t)
 
const Jsonoperator[] (size_t) const
 
Jsonoperator[] (int)
 
const Jsonoperator[] (int) const
 
template<typename T >
get () const
 
template<typename T >
value (const std::string &, const T &def) const
 
bool contains (const std::string &) const
 
bool is_null () const
 
bool is_boolean () const
 
bool is_number () const
 
bool is_object () const
 
bool is_array () const
 
bool is_string () const
 
bool is_discarded () const
 
size_t size () const
 
bool empty () const
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
items_view items ()
 
std::string dump (int=-1, char=' ', bool=false, int=0) const
 

Static Public Member Functions

static Json object ()
 
static Json array ()
 
static Json parse (const std::string &)
 

Detailed Description

Definition at line 20 of file json.h.

Constructor & Destructor Documentation

◆ Json() [1/8]

yaze::Json::Json ( )
default

Referenced by array(), and object().

◆ Json() [2/8]

yaze::Json::Json ( std::nullptr_t )
inline

Definition at line 24 of file json.h.

◆ Json() [3/8]

yaze::Json::Json ( bool )
inline

Definition at line 25 of file json.h.

◆ Json() [4/8]

yaze::Json::Json ( int )
inline

Definition at line 26 of file json.h.

◆ Json() [5/8]

yaze::Json::Json ( double )
inline

Definition at line 27 of file json.h.

◆ Json() [6/8]

yaze::Json::Json ( const char * )
inline

Definition at line 28 of file json.h.

◆ Json() [7/8]

yaze::Json::Json ( const std::string & )
inline

Definition at line 29 of file json.h.

◆ Json() [8/8]

template<typename T >
yaze::Json::Json ( const T & )
inline

Definition at line 31 of file json.h.

Member Function Documentation

◆ object()

static Json yaze::Json::object ( )
inlinestatic

Definition at line 34 of file json.h.

References Json().

Referenced by yaze::editor::PanelManager::SavePresetsToFile().

Here is the call graph for this function:

◆ array()

static Json yaze::Json::array ( )
inlinestatic

Definition at line 35 of file json.h.

References Json().

Referenced by yaze::editor::AgentChatHistoryCodec::Save().

Here is the call graph for this function:

◆ parse()

static Json yaze::Json::parse ( const std::string & )
inlinestatic

Definition at line 36 of file json.h.

◆ operator=()

template<typename T >
Json & yaze::Json::operator= ( const T & )
inline

Definition at line 39 of file json.h.

◆ operator[]() [1/6]

Json & yaze::Json::operator[] ( const std::string & )
inline

Definition at line 42 of file json.h.

◆ operator[]() [2/6]

const Json & yaze::Json::operator[] ( const std::string & ) const
inline

Definition at line 43 of file json.h.

◆ operator[]() [3/6]

Json & yaze::Json::operator[] ( size_t )
inline

Definition at line 44 of file json.h.

◆ operator[]() [4/6]

const Json & yaze::Json::operator[] ( size_t ) const
inline

Definition at line 45 of file json.h.

◆ operator[]() [5/6]

Json & yaze::Json::operator[] ( int )
inline

Definition at line 46 of file json.h.

◆ operator[]() [6/6]

const Json & yaze::Json::operator[] ( int ) const
inline

Definition at line 47 of file json.h.

◆ get()

template<typename T >
T yaze::Json::get ( ) const
inline

Definition at line 49 of file json.h.

◆ value()

template<typename T >
T yaze::Json::value ( const std::string & ,
const T & def ) const
inline

Definition at line 50 of file json.h.

◆ contains()

bool yaze::Json::contains ( const std::string & ) const
inline

Definition at line 53 of file json.h.

Referenced by yaze::editor::PanelManager::LoadPresetsFromFile().

◆ is_null()

bool yaze::Json::is_null ( ) const
inline

Definition at line 54 of file json.h.

◆ is_boolean()

bool yaze::Json::is_boolean ( ) const
inline

Definition at line 55 of file json.h.

◆ is_number()

bool yaze::Json::is_number ( ) const
inline

Definition at line 56 of file json.h.

◆ is_object()

bool yaze::Json::is_object ( ) const
inline

Definition at line 57 of file json.h.

◆ is_array()

bool yaze::Json::is_array ( ) const
inline

Definition at line 58 of file json.h.

Referenced by yaze::editor::PanelManager::LoadPresetsFromFile().

◆ is_string()

bool yaze::Json::is_string ( ) const
inline

Definition at line 59 of file json.h.

◆ is_discarded()

bool yaze::Json::is_discarded ( ) const
inline

Definition at line 60 of file json.h.

◆ size()

size_t yaze::Json::size ( ) const
inline

Definition at line 61 of file json.h.

◆ empty()

bool yaze::Json::empty ( ) const
inline

Definition at line 62 of file json.h.

◆ begin() [1/2]

iterator yaze::Json::begin ( )
inline

Definition at line 78 of file json.h.

◆ end() [1/2]

iterator yaze::Json::end ( )
inline

Definition at line 79 of file json.h.

◆ begin() [2/2]

const_iterator yaze::Json::begin ( ) const
inline

Definition at line 80 of file json.h.

◆ end() [2/2]

const_iterator yaze::Json::end ( ) const
inline

Definition at line 81 of file json.h.

◆ items()

items_view yaze::Json::items ( )
inline

Definition at line 88 of file json.h.

Referenced by yaze::editor::PanelManager::LoadPresetsFromFile().

◆ dump()

std::string yaze::Json::dump ( int = -1,
char = ' ',
bool = false,
int = 0 ) const
inline

Definition at line 91 of file json.h.

Referenced by yaze::editor::PanelManager::SavePresetsToFile().


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