JODA  0.13.1 (59b41972)
JSON On-Demand Analysis
IDProvider.h
Go to the documentation of this file.
1 //
2 // Created by Nico Schäfer on 12/7/17.
3 //
4 
5 #ifndef JODA_IDPROVIDER_H
6 #define JODA_IDPROVIDER_H
7 
8 #include "IValueProvider.h"
9 
10 namespace joda::query {
15  public:
16  explicit IDProvider(
17  std::vector<std::unique_ptr<IValueProvider>> &&parameters);
18  std::unique_ptr<IValueProvider> duplicate() const override;
19 
20  bool isConst() const override;
21 
23  RJMemoryPoolAlloc &alloc) const override;
24  const RJValue *getValue(const RapidJsonDocument &json,
25  RJMemoryPoolAlloc &alloc) const override;
26 
27  std::string getName() const override;
28  IValueType getReturnType() const override;
29 
31 };
32 } // namespace joda::query
33 
34 #endif // JODA_IDPROVIDER_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: IDProvider.h:14
std::unique_ptr< IValueProvider > duplicate() const override
Definition: IDProvider.cpp:8
RJValue getAtomValue(const RapidJsonDocument &json, RJMemoryPoolAlloc &alloc) const override
Definition: IDProvider.cpp:14
IValueType getReturnType() const override
Definition: IDProvider.cpp:29
std::string getName() const override
Definition: IDProvider.cpp:27
bool isConst() const override
Definition: IDProvider.cpp:12
const RJValue * getValue(const RapidJsonDocument &json, RJMemoryPoolAlloc &alloc) const override
Definition: IDProvider.cpp:21
IDProvider(std::vector< std::unique_ptr< IValueProvider >> &&parameters)
Definition: IDProvider.cpp:33
Definition: IValueProvider.h:143
Definition: AttributeStatAggregator.h:12
IValueType
Definition: IValueProvider.h:33