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

#include <ParameterPack.h>

Public Types

typedef std::variant< typename T1::ReturnT, typename T2::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 T1, class T2, class Default>
struct joda::query::values::OrParameter< k, T1, T2, Default >

Wraps two parameters and combines them

Template Parameters
kthe index of the parameter
T1the type of the first wrapped parameter
T2the type of the second wrapped parameter
Exceptions
WrongParameterExceptionif there is a problem with the parameter

Member Typedef Documentation

◆ ReturnT

template<std::size_t k, class T1 , class T2 , class Default >
typedef std::variant<typename T1::ReturnT, typename T2::ReturnT> joda::query::values::OrParameter< k, T1, T2, Default >::ReturnT

Member Function Documentation

◆ check()

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

◆ extractValue()

template<std::size_t k, class T1 , class T2 , class Default >
static ReturnT joda::query::values::OrParameter< k, T1, T2, Default >::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: