Reverse of WriterPtrPool where T is object type without ID field.
More...
#include <SVFFileSystem.h>
template<typename T>
class SVF::ReaderPtrPool< T >
Reverse of WriterPtrPool where T is object type without ID field.
- Template Parameters
-
Definition at line 751 of file SVFFileSystem.h.
◆ createObjs()
template<typename T >
template<typename Creator >
- Template Parameters
-
- Parameters
-
Definition at line 769 of file SVFFileSystem.h.
772 "jsonArray should be empty when creating objects");
779 T* obj = creator(objFieldJson);
#define jsonForEach(field, array)
#define ABORT_IFNOT(condition, reason)
std::vector< T * > ptrPool
std::vector< const cJSON * > jsonArray
bool jsonIsArray(const cJSON *item)
bool jsonIsObject(const cJSON *item)
◆ fillObjs()
template<typename T >
template<typename FillFunc >
Definition at line 792 of file SVFFileSystem.h.
795 "jsonArray and ptrPool should have same size");
796 for (
size_t i = 0; i <
jsonArray.size(); ++i)
799 fillFunc(objFieldJson,
ptrPool[i]);
800 ABORT_IFNOT(!objFieldJson,
"json should be consumed by filler, but "
801 << objFieldJson->
string <<
" left");
◆ getPtr()
◆ reserve()
◆ saveToSet()
template<typename T >
template<typename Set >
Definition at line 812 of file SVFFileSystem.h.
set(THREADS_PREFER_PTHREAD_FLAG ON) find_package(Threads REQUIRED) add_llvm_executable(wpa wpa.cpp) target_link_libraries(wpa PUBLIC $
◆ size()
◆ jsonArray
◆ ptrPool
The documentation for this class was generated from the following file: