JODA  0.13.1 (59b41972)
JSON On-Demand Analysis
ArraySizeProvider.h
Go to the documentation of this file.
1 //
2 // Created by Nico Schäfer on 11/27/17.
3 //
4 
5 #ifndef JODA_ARRAYSIZEPROVIDER_H
6 #define JODA_ARRAYSIZEPROVIDER_H
7 
8 #include <rapidjson/fwd.h>
9 
10 #include "IValueProvider.h"
11 
12 namespace joda::query {
18  public:
19  explicit ArraySizeProvider(
20  std::vector<std::unique_ptr<IValueProvider>> &&parameters);
22  std::string getName() const override;
23  IValueType getReturnType() const override;
25  RJMemoryPoolAlloc &alloc) const override;
26  const RJValue *getValue(const RapidJsonDocument &json,
27  RJMemoryPoolAlloc &alloc) const override;
28 
29  std::unique_ptr<IValueProvider> duplicate() const override;
30  bool isConst() const override;
31 
33  protected:
34 };
35 } // namespace joda::query
36 
37 #endif // JODA_ARRAYSIZEPROVIDER_H
#define CREATE_FACTORY(FCLASS)
Definition: IValueProvider.h:20
rapidjson::MemoryPoolAllocator< RJBaseAlloc > RJMemoryPoolAlloc
Definition: RJFwd.h:26
rapidjson::GenericValue< RJChar, RJMemoryPoolAlloc > RJValue
Definition: RJFwd.h:29
Definition: RapidJsonDocument.h:22
Definition: ArraySizeProvider.h:17
const RJValue * getValue(const RapidJsonDocument &json, RJMemoryPoolAlloc &alloc) const override
Definition: ArraySizeProvider.cpp:35
std::unique_ptr< IValueProvider > duplicate() const override
Definition: ArraySizeProvider.cpp:11
IValueType getReturnType() const override
Definition: ArraySizeProvider.cpp:52
std::string getName() const override
Definition: ArraySizeProvider.cpp:56
ArraySizeProvider()
Definition: ArraySizeProvider.cpp:48
RJValue getAtomValue(const RapidJsonDocument &json, RJMemoryPoolAlloc &alloc) const override
Definition: ArraySizeProvider.cpp:17
bool isConst() const override
Definition: ArraySizeProvider.cpp:15
Definition: IValueProvider.h:143
Definition: AttributeStatAggregator.h:12
IValueType
Definition: IValueProvider.h:33