JODA  0.13.1 (59b41972)
JSON On-Demand Analysis
MemoryJoinDoc.h
Go to the documentation of this file.
1 //
2 // Created by Nico Schäfer on 02/04/18.
3 //
4 
5 #ifndef JODA_MEMORYJOINDOC_H
6 #define JODA_MEMORYJOINDOC_H
7 
8 #include <rapidjson/allocators.h>
9 #include <rapidjson/document.h>
10 #include <mutex>
11 #include "joda/misc/RJFwd.h"
12 
17  public:
22  explicit MemoryJoinDoc(long i);
27  explicit MemoryJoinDoc(const std::string& str);
32  explicit MemoryJoinDoc(bool b);
33 
38  void join(RJValue&& val);
43  void join(const RJValue& val);
48  void deepCopyInto(RJDocument& val);
53  size_t getMemSize();
54 
55  protected:
56  MemoryJoinDoc();
59  std::mutex mut;
60 };
61 
62 #endif // JODA_MEMORYJOINDOC_H
rapidjson::GenericDocument< RJChar, RJMemoryPoolAlloc, RJBaseAlloc > RJDocument
Definition: RJFwd.h:28
rapidjson::MemoryPoolAllocator< RJBaseAlloc > RJMemoryPoolAlloc
Definition: RJFwd.h:26
rapidjson::GenericValue< RJChar, RJMemoryPoolAlloc > RJValue
Definition: RJFwd.h:29
Definition: MemoryJoinDoc.h:16
void deepCopyInto(RJDocument &val)
Definition: MemoryJoinDoc.cpp:41
RJMemoryPoolAlloc alloc
Definition: MemoryJoinDoc.h:57
std::mutex mut
Definition: MemoryJoinDoc.h:59
RJDocument doc
Definition: MemoryJoinDoc.h:58
MemoryJoinDoc()
Definition: MemoryJoinDoc.cpp:7
size_t getMemSize()
Definition: MemoryJoinDoc.cpp:46
void join(RJValue &&val)
Definition: MemoryJoinDoc.cpp:36