retdec
Public Member Functions | Private Attributes | List of all members
retdec::llvmir2hll::CFGNode::CFGEdge Class Reference

A representation of a control-flow graph edge. More...

Inheritance diagram for retdec::llvmir2hll::CFGNode::CFGEdge:
Inheritance graph
[legend]
Collaboration diagram for retdec::llvmir2hll::CFGNode::CFGEdge:
Collaboration graph
[legend]

Public Member Functions

 CFGEdge (ShPtr< CFGNode > target)
 Constructs a new control-flow graph edge. More...
 
ShPtr< CFGNodegetTarget () const
 Returns the target of this edge. More...
 
bool isBackEdge () const
 Returns true if this edge is a back-edge. More...
 
void setBackEdge (bool isBackEdge=true)
 Sets flag whether this node is a back-edge to value isBackEdge. More...
 

Private Attributes

ShPtr< CFGNodetarget
 A target of this edge. More...
 
bool backEdge
 Is this edge a back-edge? More...
 

Additional Inherited Members

- Private Member Functions inherited from retdec::utils::NonCopyable
 NonCopyable (const NonCopyable &)=delete
 
NonCopyableoperator= (const NonCopyable &)=delete
 
 NonCopyable ()=default
 
 ~NonCopyable ()=default
 

Detailed Description

A representation of a control-flow graph edge.

Constructor & Destructor Documentation

◆ CFGEdge()

retdec::llvmir2hll::CFGNode::CFGEdge::CFGEdge ( ShPtr< CFGNode target)

Constructs a new control-flow graph edge.

Parameters
[in]targetA target of the currently created edge.

Member Function Documentation

◆ getTarget()

ShPtr< CFGNode > retdec::llvmir2hll::CFGNode::CFGEdge::getTarget ( ) const

Returns the target of this edge.

◆ isBackEdge()

bool retdec::llvmir2hll::CFGNode::CFGEdge::isBackEdge ( ) const

Returns true if this edge is a back-edge.

◆ setBackEdge()

void retdec::llvmir2hll::CFGNode::CFGEdge::setBackEdge ( bool  isBackEdge = true)

Sets flag whether this node is a back-edge to value isBackEdge.

Member Data Documentation

◆ backEdge

bool retdec::llvmir2hll::CFGNode::CFGEdge::backEdge
private

Is this edge a back-edge?

◆ target

ShPtr<CFGNode> retdec::llvmir2hll::CFGNode::CFGEdge::target
private

A target of this edge.


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