JODA  0.13.1 (59b41972)
JSON On-Demand Analysis
Public Types | Static Public Member Functions
joda::query::values::OptionalWithDefaultParameter< k, T, Default > Struct Template Reference

#include <ParameterPack.h>

Public Types

typedef T::ReturnT ReturnT
 

Static Public Member Functions

static void check (const std::vector< std::unique_ptr< IValueProvider >> &parameters, const std::string &name)
 
static ReturnT extractValue (const std::vector< std::unique_ptr< IValueProvider >> &parameters, const RapidJsonDocument &json, RJMemoryPoolAlloc &alloc)
 

Detailed Description

template<std::size_t k, class T, class Default>
struct joda::query::values::OptionalWithDefaultParameter< k, T, Default >

Wraps an parameter and accepts if it does not exist

Template Parameters
kthe index of the parameter
Tthe type of the wrapped parameter
Exceptions
WrongParameterExceptionif there is a problem with the parameter

Member Typedef Documentation

◆ ReturnT

template<std::size_t k, class T , class Default >
typedef T::ReturnT joda::query::values::OptionalWithDefaultParameter< k, T, Default >::ReturnT

Member Function Documentation

◆ check()

template<std::size_t k, class T , class Default >
static void joda::query::values::OptionalWithDefaultParameter< k, T, Default >::check ( const std::vector< std::unique_ptr< IValueProvider >> &  parameters,
const std::string &  name 
)
inlinestatic

◆ extractValue()

template<std::size_t k, class T , class Default >
static ReturnT joda::query::values::OptionalWithDefaultParameter< k, T, Default >::extractValue ( const std::vector< std::unique_ptr< IValueProvider >> &  parameters,
const RapidJsonDocument json,
RJMemoryPoolAlloc alloc 
)
inlinestatic
Here is the caller graph for this function:

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