JODA  0.13.1 (59b41972)
JSON On-Demand Analysis
Public Member Functions
joda::query::INListProvider Class Reference

#include <INListProvider.h>

Inheritance diagram for joda::query::INListProvider:
[legend]
Collaboration diagram for joda::query::INListProvider:
[legend]

Public Member Functions

std::unique_ptr< IValueProviderduplicate () const override
 
bool isConst () const override
 
RJValue getAtomValue (const RapidJsonDocument &json, RJMemoryPoolAlloc &alloc) const override
 
const RJValuegetValue (const RapidJsonDocument &json, RJMemoryPoolAlloc &alloc) const override
 
 INListProvider (std::vector< std::unique_ptr< IValueProvider >> &&parameters)
 
std::string getName () const override
 
IValueType getReturnType () const override
 
- Public Member Functions inherited from joda::query::IValueProvider
 IValueProvider (std::vector< std::unique_ptr< IValueProvider >> &&parameters)
 
 IValueProvider ()
 
virtual ~IValueProvider ()=default
 
virtual std::string toString () const
 
virtual bool isString () const
 
virtual bool isNumber () const
 
virtual bool isBool () const
 
virtual bool isObject () const
 
virtual bool isArray () const
 
virtual bool isNull () const
 
virtual bool isAny () const
 
virtual bool isAtom () const
 
virtual std::vector< std::string > getAttributes () const
 
virtual void getAttributes (std::vector< std::string > &vec) const
 
bool equal (IValueProvider *other, const RapidJsonDocument &json) const
 
virtual bool comparable () const
 
virtual bool equalizable () const
 

Additional Inherited Members

- Static Public Member Functions inherited from joda::query::IValueProvider
static void replaceConstSubexpressions (std::unique_ptr< IValueProvider > &val)
 
static bool constBoolCheck (std::unique_ptr< IValueProvider > &val)
 
- Protected Member Functions inherited from joda::query::IValueProvider
bool getParamString (std::string &ret, const std::unique_ptr< IValueProvider > &val, const RapidJsonDocument &json) const
 
void checkParamSize (unsigned int expected)
 
void checkMinParamSize (unsigned int expected)
 
void checkParamType (unsigned int i, IValueType expected)
 
void checkOptionalParamType (unsigned int i, IValueType expected)
 
std::vector< std::unique_ptr< IValueProvider > > duplicateParameters () const
 
std::string getParameterStringRepresentation () const
 
- Protected Attributes inherited from joda::query::IValueProvider
std::vector< std::unique_ptr< IValueProvider > > params
 

Detailed Description

IN(X,Y) checks if X is in array Y

Constructor & Destructor Documentation

◆ INListProvider()

joda::query::INListProvider::INListProvider ( std::vector< std::unique_ptr< IValueProvider >> &&  parameters)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ duplicate()

std::unique_ptr< joda::query::IValueProvider > joda::query::INListProvider::duplicate ( ) const
overridevirtual
Returns
a pointer to a duplicate of the IValueProvider

Implements joda::query::IValueProvider.

Here is the call graph for this function:

◆ getAtomValue()

RJValue joda::query::INListProvider::getAtomValue ( const RapidJsonDocument json,
RJMemoryPoolAlloc alloc 
) const
overridevirtual

Gets an atomic value

Attention
isAtom() has to return true. If not this will result in undefined behavior
Parameters
jsonThe Rapidjsondocument to retrieve values from. (Or an empty RapidJsonDocument for const values)
allocA MemoryPoolAllocator to create the values with
Returns
a value containing the result

Implements joda::query::IValueProvider.

◆ getName()

std::string joda::query::INListProvider::getName ( ) const
overridevirtual
Returns
The function name

Implements joda::query::IValueProvider.

◆ getReturnType()

joda::query::IValueType joda::query::INListProvider::getReturnType ( ) const
overridevirtual
Returns
The type returned by the function

Implements joda::query::IValueProvider.

◆ getValue()

const RJValue * joda::query::INListProvider::getValue ( const RapidJsonDocument json,
RJMemoryPoolAlloc alloc 
) const
overridevirtual

Gets an value

Attention
isAtom() has to return false. If not this will result in undefined behavior
Parameters
jsonThe Rapidjsondocument to retrieve values from. (Or an empty RapidJsonDocument for const values)
allocA MemoryPoolAllocator to create the values with
Returns
a value-pointer containing the result

Implements joda::query::IValueProvider.

◆ isConst()

bool joda::query::INListProvider::isConst ( ) const
overridevirtual
Returns
True if the Provider is const, false else

Implements joda::query::IValueProvider.


The documentation for this class was generated from the following files: