Static Value-Flow Analysis
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | Friends | List of all members
SVF::SymbolTableInfoReader Class Reference

#include <SVFFileSystem.h>

Public Member Functions

MemObjgetMemObjPtr (unsigned id) const
 
template<typename MemObjCreator >
void createObjs (const cJSON *symTabJson, MemObjCreator memObjCreator)
 
const cJSONgetFieldJson () const
 

Private Attributes

const cJSONsymTabFieldJson = nullptr
 
ReaderIDToObjMap< MemObjmemObjMap
 

Friends

class SVFIRReader
 

Detailed Description

Definition at line 896 of file SVFFileSystem.h.

Member Function Documentation

◆ createObjs()

template<typename MemObjCreator >
void SVF::SymbolTableInfoReader::createObjs ( const cJSON symTabJson,
MemObjCreator  memObjCreator 
)
inline

Definition at line 911 of file SVFFileSystem.h.

912 {
913 assert(!symTabFieldJson && "symTabFieldJson should be empty");
914 ABORT_IFNOT(jsonIsObject(symTabJson), "symTableJson is not an object?");
915
916 const cJSON* const allMemObj = symTabJson->child;
918 memObjMap.createObjs(allMemObj, memObjCreator);
919
921 }
#define ABORT_IFNOT(condition, msg)
#define CHECK_JSON_KEY(obj)
ReaderIDToObjMap< MemObj > memObjMap
llvm::IRBuilder IRBuilder
Definition BasicTypes.h:74
bool jsonIsObject(const cJSON *item)
Definition cJSON.h:104
struct cJSON * child
Definition cJSON.h:109
struct cJSON * next
Definition cJSON.h:106

◆ getFieldJson()

const cJSON * SVF::SymbolTableInfoReader::getFieldJson ( ) const
inline

Definition at line 923 of file SVFFileSystem.h.

924 {
925 return symTabFieldJson;
926 }

◆ getMemObjPtr()

MemObj * SVF::SymbolTableInfoReader::getMemObjPtr ( unsigned  id) const
inline

Definition at line 905 of file SVFFileSystem.h.

906 {
907 return memObjMap.getPtr(id);
908 }

Friends And Related Symbol Documentation

◆ SVFIRReader

Definition at line 898 of file SVFFileSystem.h.

Member Data Documentation

◆ memObjMap

ReaderIDToObjMap<MemObj> SVF::SymbolTableInfoReader::memObjMap
private

Definition at line 902 of file SVFFileSystem.h.

◆ symTabFieldJson

const cJSON* SVF::SymbolTableInfoReader::symTabFieldJson = nullptr
private

Definition at line 901 of file SVFFileSystem.h.


The documentation for this class was generated from the following file: