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

#include <ParameterPack.h>

Public Types

typedef std::optional< typename 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>
struct joda::query::values::OptionalParameter< k, T >

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 >
typedef std::optional<typename T::ReturnT> joda::query::values::OptionalParameter< k, T >::ReturnT

Member Function Documentation

◆ check()

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

◆ extractValue()

template<std::size_t k, class T >
static ReturnT joda::query::values::OptionalParameter< k, T >::extractValue ( const std::vector< std::unique_ptr< IValueProvider >> &  parameters,
const RapidJsonDocument json,
RJMemoryPoolAlloc alloc 
)
inlinestatic

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