JODA  0.13.1 (59b41972)
JSON On-Demand Analysis
Public Member Functions
joda::query::ConstantNumber< Calc > Class Template Reference

#include <ConstantNumber.h>

Inheritance diagram for joda::query::ConstantNumber< Calc >:
[legend]
Collaboration diagram for joda::query::ConstantNumber< Calc >:
[legend]

Public Member Functions

 ConstantNumber (std::vector< std::unique_ptr< IValueProvider >> &&parameters)
 
 ConstantNumber ()
 
std::string getName () const override
 
std::string toString () const override
 
- Public Member Functions inherited from joda::query::AtomProvider< Calc::AtomType >
 AtomProvider (Calc::AtomType val)
 
std::unique_ptr< IValueProviderduplicate () const override
 
std::string toString () const override
 
std::string toString () const
 
std::string toString () const
 
std::string toString () const
 
std::string toString () const
 
std::string toString () const
 
std::string toString () const
 
std::string toString () const
 
std::string toString () const
 
std::string toString () const
 
std::string toString () const
 
bool isConst () const override
 
RJValue getAtomValue (const RapidJsonDocument &json, RJMemoryPoolAlloc &alloc) const override
 
RJValue getAtomValue (const RapidJsonDocument &, RJMemoryPoolAlloc &) const
 
RJValue getAtomValue (const RapidJsonDocument &, RJMemoryPoolAlloc &) const
 
RJValue getAtomValue (const RapidJsonDocument &, RJMemoryPoolAlloc &) const
 
RJValue getAtomValue (const RapidJsonDocument &, RJMemoryPoolAlloc &) const
 
RJValue getAtomValue (const RapidJsonDocument &, RJMemoryPoolAlloc &alloc) const
 
const RJValuegetValue (const RapidJsonDocument &json, RJMemoryPoolAlloc &alloc) const override
 
std::string getName () const override
 
joda::query::IValueType getReturnType () const override
 
joda::query::IValueType getReturnType () const
 
joda::query::IValueType getReturnType () const
 
joda::query::IValueType getReturnType () const
 
joda::query::IValueType getReturnType () const
 
joda::query::IValueType getReturnType () const
 
- Public Member Functions inherited from joda::query::IValueProvider
 IValueProvider (std::vector< std::unique_ptr< IValueProvider >> &&parameters)
 
 IValueProvider ()
 
virtual ~IValueProvider ()=default
 
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::AtomProvider< Calc::AtomType >
Calc::AtomType val
 
- Protected Attributes inherited from joda::query::IValueProvider
std::vector< std::unique_ptr< IValueProvider > > params
 

Detailed Description

template<class Calc>
class joda::query::ConstantNumber< Calc >

Template class used for all number constants. The template argument has to be a struct with the following attributes/functions.

struct <StructName> {
typedef <Number Type double, int, ...> AtomType;
static constexpr auto name = "<Name>";
static constexpr auto value() { return <value>; }
};

Constructor & Destructor Documentation

◆ ConstantNumber() [1/2]

template<class Calc >
joda::query::ConstantNumber< Calc >::ConstantNumber ( std::vector< std::unique_ptr< IValueProvider >> &&  parameters)
inlineexplicit
Here is the call graph for this function:

◆ ConstantNumber() [2/2]

template<class Calc >
joda::query::ConstantNumber< Calc >::ConstantNumber ( )
inlineexplicit

Member Function Documentation

◆ getName()

template<class Calc >
std::string joda::query::ConstantNumber< Calc >::getName ( ) const
inlineoverridevirtual
Returns
The function name

Implements joda::query::IValueProvider.

Here is the caller graph for this function:

◆ toString()

template<class Calc >
std::string joda::query::ConstantNumber< Calc >::toString ( ) const
inlineoverridevirtual
Returns
A textual representation of the IValueProvider

Reimplemented from joda::query::IValueProvider.

Here is the call graph for this function:

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