o-du/phy
Intel O-RAN/X-RAN Generated Doxygen Documentation
|
#include <algorithm>
#include <array>
#include <cassert>
#include <cctype>
#include <ciso646>
#include <cmath>
#include <cstddef>
#include <cstdint>
#include <cstdlib>
#include <cstring>
#include <forward_list>
#include <functional>
#include <initializer_list>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <limits>
#include <locale>
#include <map>
#include <memory>
#include <numeric>
#include <sstream>
#include <stdexcept>
#include <string>
#include <type_traits>
#include <utility>
#include <vector>
Go to the source code of this file.
Namespaces | |
nlohmann | |
namespace for Niels Lohmann | |
nlohmann::detail | |
unnamed namespace with internal helper functions | |
std | |
Macros | |
#define | JSON_DEPRECATED |
#define | JSON_THROW(exception) std::abort() |
#define | JSON_TRY if(true) |
#define | JSON_CATCH(exception) if(false) |
#define | NLOHMANN_JSON_HAS_HELPER(type) |
Helper to determine whether there's a key_type for T. More... | |
Typedefs | |
template<bool B, typename T = void> | |
using | enable_if_t = typename std::enable_if< B, T >::type |
template<typename T > | |
using | uncvref_t = typename std::remove_cv< typename std::remove_reference< T >::type >::type |
template<typename T > | |
using | is_unscoped_enum = std::integral_constant< bool, std::is_convertible< T, int >::value and std::is_enum< T >::value > |
using | json = basic_json<> |
default JSON class More... | |
Enumerations | |
enum | value_t : uint8_t { null, object, array, string, boolean, number_integer, number_unsigned, number_float, discarded } |
the JSON type enumeration More... | |
Functions | |
bool | operator< (const value_t lhs, const value_t rhs) noexcept |
comparison operator for JSON types More... | |
NLOHMANN_JSON_HAS_HELPER (mapped_type) | |
NLOHMANN_JSON_HAS_HELPER (key_type) | |
NLOHMANN_JSON_HAS_HELPER (value_type) | |
NLOHMANN_JSON_HAS_HELPER (iterator) | |
template<typename BasicJsonType , typename T , enable_if_t< std::is_same< T, typename BasicJsonType::boolean_t >::value, int > = 0> | |
void | to_json (BasicJsonType &j, T b) noexcept |
template<typename BasicJsonType , typename CompatibleString , enable_if_t< std::is_constructible< typename BasicJsonType::string_t, CompatibleString >::value, int > = 0> | |
void | to_json (BasicJsonType &j, const CompatibleString &s) |
template<typename BasicJsonType , typename FloatType , enable_if_t< std::is_floating_point< FloatType >::value, int > = 0> | |
void | to_json (BasicJsonType &j, FloatType val) noexcept |
template<typename BasicJsonType , typename CompatibleNumberUnsignedType , enable_if_t< is_compatible_integer_type< typename BasicJsonType::number_unsigned_t, CompatibleNumberUnsignedType >::value, int > = 0> | |
void | to_json (BasicJsonType &j, CompatibleNumberUnsignedType val) noexcept |
template<typename BasicJsonType , typename CompatibleNumberIntegerType , enable_if_t< is_compatible_integer_type< typename BasicJsonType::number_integer_t, CompatibleNumberIntegerType >::value, int > = 0> | |
void | to_json (BasicJsonType &j, CompatibleNumberIntegerType val) noexcept |
template<typename BasicJsonType , typename UnscopedEnumType , enable_if_t< is_unscoped_enum< UnscopedEnumType >::value, int > = 0> | |
void | to_json (BasicJsonType &j, UnscopedEnumType e) noexcept |
template<typename BasicJsonType , typename CompatibleArrayType , enable_if_t< is_compatible_array_type< BasicJsonType, CompatibleArrayType >::value or std::is_same< typename BasicJsonType::array_t, CompatibleArrayType >::value, int > = 0> | |
void | to_json (BasicJsonType &j, const CompatibleArrayType &arr) |
template<typename BasicJsonType , typename CompatibleObjectType , enable_if_t< is_compatible_object_type< BasicJsonType, CompatibleObjectType >::value, int > = 0> | |
void | to_json (BasicJsonType &j, const CompatibleObjectType &arr) |
template<typename BasicJsonType , typename ArithmeticType , enable_if_t< std::is_arithmetic< ArithmeticType >::value and not std::is_same< ArithmeticType, typename BasicJsonType::boolean_t >::value, int > = 0> | |
void | get_arithmetic_value (const BasicJsonType &j, ArithmeticType &val) |
template<typename BasicJsonType > | |
void | from_json (const BasicJsonType &j, typename BasicJsonType::boolean_t &b) |
template<typename BasicJsonType > | |
void | from_json (const BasicJsonType &j, typename BasicJsonType::string_t &s) |
template<typename BasicJsonType > | |
void | from_json (const BasicJsonType &j, typename BasicJsonType::number_float_t &val) |
template<typename BasicJsonType > | |
void | from_json (const BasicJsonType &j, typename BasicJsonType::number_unsigned_t &val) |
template<typename BasicJsonType > | |
void | from_json (const BasicJsonType &j, typename BasicJsonType::number_integer_t &val) |
template<typename BasicJsonType , typename UnscopedEnumType , enable_if_t< is_unscoped_enum< UnscopedEnumType >::value, int > = 0> | |
void | from_json (const BasicJsonType &j, UnscopedEnumType &e) |
template<typename BasicJsonType > | |
void | from_json (const BasicJsonType &j, typename BasicJsonType::array_t &arr) |
template<typename BasicJsonType , typename T , typename Allocator > | |
void | from_json (const BasicJsonType &j, std::forward_list< T, Allocator > &l) |
template<typename BasicJsonType , typename CompatibleArrayType > | |
void | from_json_array_impl (const BasicJsonType &j, CompatibleArrayType &arr, priority_tag< 0 >) |
template<typename BasicJsonType , typename CompatibleArrayType > | |
auto | from_json_array_impl (const BasicJsonType &j, CompatibleArrayType &arr, priority_tag< 1 >) -> decltype(arr.reserve(std::declval< typename CompatibleArrayType::size_type >()), void()) |
template<typename BasicJsonType , typename CompatibleArrayType , enable_if_t< is_compatible_array_type< BasicJsonType, CompatibleArrayType >::value and not std::is_same< typename BasicJsonType::array_t, CompatibleArrayType >::value, int > = 0> | |
void | from_json (const BasicJsonType &j, CompatibleArrayType &arr) |
template<typename BasicJsonType , typename CompatibleObjectType , enable_if_t< is_compatible_object_type< BasicJsonType, CompatibleObjectType >::value, int > = 0> | |
void | from_json (const BasicJsonType &j, CompatibleObjectType &obj) |
template<typename BasicJsonType , typename ArithmeticType , enable_if_t< std::is_arithmetic< ArithmeticType >::value and not std::is_same< ArithmeticType, typename BasicJsonType::number_unsigned_t >::value and not std::is_same< ArithmeticType, typename BasicJsonType::number_integer_t >::value and not std::is_same< ArithmeticType, typename BasicJsonType::number_float_t >::value and not std::is_same< ArithmeticType, typename BasicJsonType::boolean_t >::value, int > = 0> | |
void | from_json (const BasicJsonType &j, ArithmeticType &val) |
template<> | |
void | swap (nlohmann::json &j1, nlohmann::json &j2) noexcept(is_nothrow_move_constructible< nlohmann::json >::value and is_nothrow_move_assignable< nlohmann::json >::value) |
exchanges the values of two JSON objects More... | |
nlohmann::json | operator"" _json (const char *s, std::size_t n) |
user-defined string literal for JSON values More... | |
nlohmann::json::json_pointer | operator"" _json_pointer (const char *s, std::size_t n) |
user-defined string literal for JSON pointer More... | |
#define NLOHMANN_JSON_HAS_HELPER | ( | type | ) |
Helper to determine whether there's a key_type for T.
This helper is used to tell associative containers apart from other containers such as sequence containers. For instance, std::map
passes the test as it contains a mapped_type
, whereas std::vector
fails the test.
|
inline |
user-defined string literal for JSON values
This operator implements a user-defined string literal for JSON objects. It can be used by adding "_json"
to a string literal and returns a JSON object if no parse error occurred.
[in] | s | a string representation of a JSON object |
[in] | n | the length of string s |
Definition at line 12946 of file json.hpp.
|
inline |
user-defined string literal for JSON pointer
This operator implements a user-defined string literal for JSON Pointers. It can be used by adding "_json_pointer"
to a string literal and returns a JSON pointer object if no parse error occurred.
[in] | s | a string representation of a JSON Pointer |
[in] | n | the length of string s |