PandA-2024.02
Public Member Functions | Private Attributes
BBVertexSorter Class Reference

#include <basic_block.hpp>

Inheritance diagram for BBVertexSorter:
Inheritance graph
[legend]
Collaboration diagram for BBVertexSorter:
Collaboration graph
[legend]

Public Member Functions

 BBVertexSorter (const BBGraphConstRef bb_graph)
 Constructor. More...
 
bool operator() (const vertex x, const vertex y) const
 Compare position of two vertices. More...
 

Private Attributes

BBGraphConstRef bb_graph
 The basic block graph to which vertices belong Note: this should be const, but can not because of assignment operator. More...
 

Detailed Description

Definition at line 427 of file basic_block.hpp.

Constructor & Destructor Documentation

◆ BBVertexSorter()

BBVertexSorter::BBVertexSorter ( const BBGraphConstRef  bb_graph)
explicit

Constructor.

Parameters
bb_graphis the basic block graph to which vertices belong

Definition at line 225 of file basic_block.cpp.

Member Function Documentation

◆ operator()()

bool BBVertexSorter::operator() ( const vertex  x,
const vertex  y 
) const

Compare position of two vertices.

Parameters
xis the first step
yis the second step
Returns
true if x is necessary and y is unnecessary

Definition at line 229 of file basic_block.cpp.

References bb_graph, and BBGraph::CGetBBNodeInfo().

Here is the call graph for this function:

Field Documentation

◆ bb_graph

BBGraphConstRef BBVertexSorter::bb_graph
private

The basic block graph to which vertices belong Note: this should be const, but can not because of assignment operator.

Definition at line 432 of file basic_block.hpp.

Referenced by operator()().


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

Generated on Mon Feb 12 2024 13:03:44 for PandA-2024.02 by doxygen 1.8.13