Static Value-Flow Analysis
Loading...
Searching...
No Matches
Public Member Functions | Private Types | Private Attributes | Friends | List of all members
SVF::GenericGraphWriter< NodeTy, EdgeTy > Class Template Reference

#include <SVFFileSystem.h>

Inheritance diagram for SVF::GenericGraphWriter< NodeTy, EdgeTy >:
SVF::ICFGWriter

Public Member Functions

 GenericGraphWriter (const GraphType *graph)
 
size_t getEdgeID (const EdgeType *edge)
 

Private Types

using NodeType = NodeTy
 
using EdgeType = EdgeTy
 
using GraphType = GenericGraph< NodeType, EdgeType >
 

Private Attributes

WriterPtrPool< EdgeTypeedgePool
 

Friends

class SVFIRWriter
 

Detailed Description

template<typename NodeTy, typename EdgeTy>
class SVF::GenericGraphWriter< NodeTy, EdgeTy >

Forward declaration of some friend classes

Definition at line 288 of file SVFFileSystem.h.

Member Typedef Documentation

◆ EdgeType

Definition at line 294 of file SVFFileSystem.h.

◆ GraphType

Definition at line 295 of file SVFFileSystem.h.

◆ NodeType

Definition at line 293 of file SVFFileSystem.h.

Constructor & Destructor Documentation

◆ GenericGraphWriter()

SVF::GenericGraphWriter< NodeTy, EdgeTy >::GenericGraphWriter ( const GraphType graph)
inline

Definition at line 301 of file SVFFileSystem.h.

302 {
303 assert(graph && "Graph pointer should never be null");
304 edgePool.reserve(graph->getTotalEdgeNum());
305
306 for (const auto& pair : graph->IDToNodeMap)
307 {
308 const NodeType* node = pair.second;
309
310 for (const EdgeType* edge : node->getOutEdges())
311 {
313 }
314 }
315 }
WriterPtrPool< EdgeType > edgePool
void saveID(const T *ptr)
void reserve(size_t size)
llvm::IRBuilder IRBuilder
Definition BasicTypes.h:74

Member Function Documentation

◆ getEdgeID()

size_t SVF::GenericGraphWriter< NodeTy, EdgeTy >::getEdgeID ( const EdgeType edge)
inline

Definition at line 317 of file SVFFileSystem.h.

318 {
319 return edgePool.getID(edge);
320 }
size_t getID(const T *ptr)

Friends And Related Symbol Documentation

◆ SVFIRWriter

Definition at line 290 of file SVFFileSystem.h.

Member Data Documentation

◆ edgePool

Definition at line 298 of file SVFFileSystem.h.


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