neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neolib::basic_json_object< T > Class Template Reference

#include <json.hpp>

Public Types

typedef T json_value
 
typedef json_value::value_type value_type
 
typedef json_value::json_string json_string
 

Public Member Functions

 basic_json_object ()
 
 basic_json_object (json_value &aOwner)
 
bool has (const json_string &aKey) const
 
const json_valueat (const json_string &aKey) const
 
json_valueat (const json_string &aKey)
 
template<typename U >
std::enable_if_t<!std::is_arithmetic_v< U >, const U & > at_or (const json_string &aKey, const U &aDefault) const
 
template<typename U >
std::enable_if_t<!std::is_arithmetic_v< U >, U & > at_or (const json_string &aKey, U &aDefault)
 
template<typename U >
std::enable_if_t< std::is_arithmetic_v< U >, Uat_or (const json_string &aKey, const U &aDefault) const
 
template<typename U >
std::enable_if_t< std::is_arithmetic_v< U >, U & > at_or (const json_string &aKey, U &aDefault)
 
json_valueoperator[] (const json_string &aKey)
 
json_valuecontents () const
 
void set_contents (json_value &aOwner)
 

Friends

template<json_syntax Syntax, typename Alloc , typename CharT , typename Traits , typename CharAlloc >
class basic_json
 
template<json_syntax Syntax, typename Alloc , typename CharT , typename Traits , typename CharAlloc >
class basic_json_value
 

Detailed Description

template<typename T>
class neolib::basic_json_object< T >

Definition at line 305 of file json.hpp.

Member Typedef Documentation

◆ json_string

Definition at line 315 of file json.hpp.

◆ json_value

template<typename T >
typedef T neolib::basic_json_object< T >::json_value

Definition at line 313 of file json.hpp.

◆ value_type

Definition at line 314 of file json.hpp.

Constructor & Destructor Documentation

◆ basic_json_object() [1/2]

template<typename T >
neolib::basic_json_object< T >::basic_json_object ( )
inline

Definition at line 325 of file json.hpp.

◆ basic_json_object() [2/2]

template<typename T >
neolib::basic_json_object< T >::basic_json_object ( json_value aOwner)
inline

Definition at line 329 of file json.hpp.

Member Function Documentation

◆ at() [1/2]

template<typename T >
json_value & neolib::basic_json_object< T >::at ( const json_string aKey)
inline

Definition at line 345 of file json.hpp.

◆ at() [2/2]

template<typename T >
const json_value & neolib::basic_json_object< T >::at ( const json_string aKey) const
inline

Definition at line 338 of file json.hpp.

◆ at_or() [1/4]

template<typename T >
template<typename U >
std::enable_if_t<!std::is_arithmetic_v< U >, const U & > neolib::basic_json_object< T >::at_or ( const json_string aKey,
const U aDefault 
) const
inline

Definition at line 350 of file json.hpp.

◆ at_or() [2/4]

template<typename T >
template<typename U >
std::enable_if_t< std::is_arithmetic_v< U >, U > neolib::basic_json_object< T >::at_or ( const json_string aKey,
const U aDefault 
) const
inline

Definition at line 364 of file json.hpp.

◆ at_or() [3/4]

template<typename T >
template<typename U >
std::enable_if_t<!std::is_arithmetic_v< U >, U & > neolib::basic_json_object< T >::at_or ( const json_string aKey,
U aDefault 
)
inline

Definition at line 357 of file json.hpp.

◆ at_or() [4/4]

template<typename T >
template<typename U >
std::enable_if_t< std::is_arithmetic_v< U >, U & > neolib::basic_json_object< T >::at_or ( const json_string aKey,
U aDefault 
)
inline

Definition at line 371 of file json.hpp.

◆ contents()

template<typename T >
json_value & neolib::basic_json_object< T >::contents ( ) const
inline

Definition at line 388 of file json.hpp.

◆ has()

template<typename T >
bool neolib::basic_json_object< T >::has ( const json_string aKey) const
inline

Definition at line 334 of file json.hpp.

◆ operator[]()

template<typename T >
json_value & neolib::basic_json_object< T >::operator[] ( const json_string aKey)
inline

Definition at line 377 of file json.hpp.

◆ set_contents()

template<typename T >
void neolib::basic_json_object< T >::set_contents ( json_value aOwner)
inline

Definition at line 394 of file json.hpp.

Friends And Related Symbol Documentation

◆ basic_json

template<typename T >
friend class basic_json
friend

Definition at line 309 of file json.hpp.

◆ basic_json_value

Definition at line 311 of file json.hpp.


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