DAW JSON Link
Public Types | Static Public Attributes | List of all members
daw::json::DAW_JSON_VER::json_number< Name, T, Options, Constructor > Struct Template Reference

#include <daw_json_link_types.h>

Inheritance diagram for daw::json::DAW_JSON_VER::json_number< Name, T, Options, Constructor >:
daw::json::DAW_JSON_VER::json_base::json_number< T, Options, Constructor >

Public Types

template<JSONNAMETYPE NewName>
using with_name = json_number< NewName, T, Options, Constructor >
 
using without_name = json_base::json_number< T, Options, Constructor >
 
- Public Types inherited from daw::json::DAW_JSON_VER::json_base::json_number< T, Options, Constructor >
using base_type = json_details::unwrapped_t< T, nullable >
 
using constructor_t = Constructor
 
using i_am_a_json_type = void
 
using parse_to_t = typename json_details::construction_result< nullable !=JsonNullable::MustExist, Constructor, base_type >::type
 
template<JSONNAMETYPE NewName>
using with_name = daw::json::json_number< NewName, T, Options, Constructor >
 
using without_name = json_number
 
using wrapped_type = T
 

Static Public Attributes

static constexpr daw::string_view name = Name
 
- Static Public Attributes inherited from daw::json::DAW_JSON_VER::json_base::json_number< T, Options, Constructor >
static constexpr JsonNumberErrors allow_number_errors
 
static constexpr JsonParseTypes base_expected_type
 
static constexpr JsonParseTypes expected_type
 
static constexpr FPOutputFormat fp_output_format
 
static constexpr LiteralAsStringOpt literal_as_string
 
static constexpr bool must_be_class_member = false
 
static constexpr daw::string_view name = no_name
 
static constexpr JsonNullable nullable
 
static constexpr JsonRangeCheck range_check
 
static constexpr JsonBaseParseTypes underlying_json_type
 

Detailed Description

template<JSONNAMETYPE Name, typename T, json_details::json_options_t Options, typename Constructor>
struct daw::json::DAW_JSON_VER::json_number< Name, T, Options, Constructor >

The member is a range checked number

Template Parameters
Namename of json member
Ttype of number(e.g. double, int, unsigned...) to pass to Constructor
LiteralAsStringCould this number be embedded in a string
ConstructorCallable used to construct result
NullableCan the member be missing or have a null value

The member is a number

Template Parameters
Namename of json member
Ttype of number(e.g. double, int, unsigned...) to pass to Constructor
LiteralAsStringCould this number be embedded in a string
ConstructorCallable used to construct result
RangeCheckCheck if the value will fit in the result
NullableCan the member be missing or have a null value

Member Typedef Documentation

◆ with_name

template<JSONNAMETYPE Name, typename T , json_details::json_options_t Options, typename Constructor >
template<JSONNAMETYPE NewName>
using daw::json::DAW_JSON_VER::json_number< Name, T, Options, Constructor >::with_name = json_number<NewName, T, Options, Constructor>

◆ without_name

template<JSONNAMETYPE Name, typename T , json_details::json_options_t Options, typename Constructor >
using daw::json::DAW_JSON_VER::json_number< Name, T, Options, Constructor >::without_name = json_base::json_number<T, Options, Constructor>

Member Data Documentation

◆ name

template<JSONNAMETYPE Name, typename T , json_details::json_options_t Options, typename Constructor >
constexpr daw::string_view daw::json::DAW_JSON_VER::json_number< Name, T, Options, Constructor >::name = Name
staticconstexpr

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