JODA  0.13.1 (59b41972)
JSON On-Demand Analysis
NullProvider.h
Go to the documentation of this file.
1 //
2 // Created by Nico on 08/05/2019.
3 //
4 
5 #ifndef JODA_NULLPROVIDER_H
6 #define JODA_NULLPROVIDER_H
7 
8 #include "IValueProvider.h"
9 
10 namespace joda::query {
15  public:
17  std::unique_ptr<IValueProvider> duplicate() const override;
18 
19  bool isConst() const override;
20  bool isAtom() 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 };
30 } // namespace joda::query
31 
32 #endif // JODA_NULLPROVIDER_H
rapidjson::MemoryPoolAllocator< RJBaseAlloc > RJMemoryPoolAlloc
Definition: RJFwd.h:26
rapidjson::GenericValue< RJChar, RJMemoryPoolAlloc > RJValue
Definition: RJFwd.h:29
Definition: RapidJsonDocument.h:22
Definition: IValueProvider.h:143
Definition: NullProvider.h:14
IValueType getReturnType() const override
Definition: NullProvider.cpp:9
bool isConst() const override
Definition: NullProvider.cpp:18
std::unique_ptr< IValueProvider > duplicate() const override
Definition: NullProvider.cpp:14
const RJValue * getValue(const RapidJsonDocument &json, RJMemoryPoolAlloc &alloc) const override
Definition: NullProvider.cpp:25
bool isAtom() const override
Definition: NullProvider.cpp:31
std::string getName() const override
Definition: NullProvider.cpp:33
RJValue getAtomValue(const RapidJsonDocument &json, RJMemoryPoolAlloc &alloc) const override
Definition: NullProvider.cpp:20
Definition: AttributeStatAggregator.h:12
IValueType
Definition: IValueProvider.h:33