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

#include <CHG.h>

Inheritance diagram for SVF::CHEdge:
SVF::GenericEdge< NodeTy >

Public Types

enum  CHEDGETYPE { INHERITANCE = 0x1 , INSTANTCE = 0x2 }
 
typedef GenericNode< CHNode, CHEdge >::GEdgeSetTy CHEdgeSetTy
 
- Public Types inherited from SVF::GenericEdge< NodeTy >
typedef NodeTy NodeType
 Node type.
 
typedef u64_t GEdgeFlag
 
typedef s64_t GEdgeKind
 
typedef struct SVF::GenericEdge::equalGEdge equalGEdge
 Add the hash function for std::set (we also can overload operator< to implement this)
 

Public Member Functions

 CHEdge (CHNode *s, CHNode *d, CHEDGETYPE et, GEdgeFlag k=0)
 
CHEDGETYPE getEdgeType () const
 
- Public Member Functions inherited from SVF::GenericEdge< NodeTy >
 GenericEdge (NodeTy *s, NodeTy *d, GEdgeFlag k)
 Constructor.
 
virtual ~GenericEdge ()
 Destructor.
 
NodeID getSrcID () const
 get methods of the components
 
NodeID getDstID () const
 
GEdgeKind getEdgeKind () const
 
GEdgeKind getEdgeKindWithoutMask () const
 
NodeType * getSrcNode () const
 
NodeType * getDstNode () const
 
virtual bool operator== (const GenericEdge< NodeType > *rhs) const
 

Private Attributes

CHEDGETYPE edgeType
 

Additional Inherited Members

- Static Protected Attributes inherited from SVF::GenericEdge< NodeTy >
static constexpr unsigned char EdgeKindMaskBits = 8
 We use the lower 8 bits to denote edge kind.
 
static constexpr u64_t EdgeKindMask = (~0ULL) >> (64 - EdgeKindMaskBits)
 

Detailed Description

Definition at line 78 of file CHG.h.

Member Typedef Documentation

◆ CHEdgeSetTy

Definition at line 88 of file CHG.h.

Member Enumeration Documentation

◆ CHEDGETYPE

Enumerator
INHERITANCE 
INSTANTCE 

Definition at line 82 of file CHG.h.

83 {
84 INHERITANCE = 0x1, // inheritance relation
85 INSTANTCE = 0x2 // template-instance relation
86 } CHEDGETYPE;
CHEDGETYPE
Definition CHG.h:83
@ INHERITANCE
Definition CHG.h:84
@ INSTANTCE
Definition CHG.h:85

Constructor & Destructor Documentation

◆ CHEdge()

SVF::CHEdge::CHEdge ( CHNode *  s,
CHNode *  d,
CHEDGETYPE  et,
GEdgeFlag  k = 0 
)
inline

Definition at line 90 of file CHG.h.

91 : GenericCHEdgeTy(s, d, k)
92 {
93 edgeType = et;
94 }
CHEDGETYPE edgeType
Definition CHG.h:102
GenericEdge< CHNode > GenericCHEdgeTy
Definition CHG.h:77
llvm::IRBuilder IRBuilder
Definition BasicTypes.h:76

Member Function Documentation

◆ getEdgeType()

CHEDGETYPE SVF::CHEdge::getEdgeType ( ) const
inline

Definition at line 96 of file CHG.h.

97 {
98 return edgeType;
99 }

Member Data Documentation

◆ edgeType

CHEDGETYPE SVF::CHEdge::edgeType
private

Definition at line 102 of file CHG.h.


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