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