DAW JSON Link
Public Types | Static Public Attributes | List of all members
daw::json::DAW_JSON_VER::json_array< Name, JsonElement, Container, Constructor, Nullable > Struct Template Reference

#include <daw_json_link_types.h>

Inheritance diagram for daw::json::DAW_JSON_VER::json_array< Name, JsonElement, Container, Constructor, Nullable >:
daw::json::DAW_JSON_VER::json_base::json_array< JsonElement, Container, Constructor, Nullable >

Public Types

template<JSONNAMETYPE NewName>
using with_name = json_array< NewName, JsonElement, Container, Constructor, Nullable >
 
using without_name = json_base::json_array< JsonElement, Container, Constructor, Nullable >
 
- Public Types inherited from daw::json::DAW_JSON_VER::json_base::json_array< JsonElement, Container, Constructor, Nullable >
using base_type = json_details::unwrapped_t< container_t, nullable >
 
using constructor_t = std::conditional_t< std::is_same_v< Constructor, json_deduce_type >, std::conditional_t< nullable==JsonNullable::MustExist, default_constructor< container_t >, nullable_constructor< container_t > >, Constructor >
 
using container_t = std::conditional_t< std::is_same_v< Container, json_deduce_type >, std::vector< json_element_parse_to_t >, Container >
 
using i_am_a_json_type = void
 
using json_element_parse_to_t = typename json_element_t::parse_to_t
 
using json_element_t = json_details::json_deduced_type< JsonElement >
 
using parse_to_t = typename json_details::construction_result< nullable !=JsonNullable::MustExist, constructor_t, json_element_parse_to_t const *, json_element_parse_to_t const * >::type
 
template<JSONNAMETYPE NewName>
using with_name = daw::json::json_array< NewName, JsonElement, Container, Constructor, Nullable >
 
using without_name = json_array
 

Static Public Attributes

static constexpr daw::string_view name = Name
 
- Static Public Attributes inherited from daw::json::DAW_JSON_VER::json_base::json_array< JsonElement, Container, Constructor, Nullable >
static constexpr JsonParseTypes base_expected_type
 
static constexpr JsonParseTypes expected_type
 
static constexpr bool must_be_class_member = false
 
static constexpr daw::string_view name = no_name
 
static constexpr JsonNullable nullable = Nullable
 
static constexpr JsonBaseParseTypes underlying_json_type
 

Detailed Description

template<JSONNAMETYPE Name, typename JsonElement, typename Container, typename Constructor, JsonNullable Nullable>
struct daw::json::DAW_JSON_VER::json_array< Name, JsonElement, Container, Constructor, Nullable >

Link to a JSON array

Template Parameters
Namename of JSON member to link to
Containertype of C++ container being constructed(e.g. vector<int>)
JsonElementJson type being parsed e.g. json_number, json_string...
ConstructorA callable used to make Container, default will use the Containers constructor. Both normal and aggregate are supported
NullableCan the member be missing or have a null value

Member Typedef Documentation

◆ with_name

template<JSONNAMETYPE Name, typename JsonElement , typename Container , typename Constructor , JsonNullable Nullable>
template<JSONNAMETYPE NewName>
using daw::json::DAW_JSON_VER::json_array< Name, JsonElement, Container, Constructor, Nullable >::with_name = json_array<NewName, JsonElement, Container, Constructor, Nullable>

◆ without_name

template<JSONNAMETYPE Name, typename JsonElement , typename Container , typename Constructor , JsonNullable Nullable>
using daw::json::DAW_JSON_VER::json_array< Name, JsonElement, Container, Constructor, Nullable >::without_name = json_base::json_array<JsonElement, Container, Constructor, Nullable>

Member Data Documentation

◆ name

template<JSONNAMETYPE Name, typename JsonElement , typename Container , typename Constructor , JsonNullable Nullable>
constexpr daw::string_view daw::json::DAW_JSON_VER::json_array< Name, JsonElement, Container, Constructor, Nullable >::name = Name
staticconstexpr

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