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

The key comparison function for vertices set based on levels. More...

#include <basic_block.hpp>

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

Public Member Functions

 bb_vertex_order_by_map (const std::map< vertex, unsigned int > &_ref)
 Constructor. More...
 
bool operator() (const vertex x, const vertex y) const
 Compares position of two vertices sorted in topological order. More...
 

Private Attributes

const std::map< vertex, unsigned int > & ref
 Topological sorted vertices. More...
 

Detailed Description

The key comparison function for vertices set based on levels.

Definition at line 480 of file basic_block.hpp.

Constructor & Destructor Documentation

◆ bb_vertex_order_by_map()

bb_vertex_order_by_map::bb_vertex_order_by_map ( const std::map< vertex, unsigned int > &  _ref)
inlineexplicit

Constructor.

Parameters
ref_is the map with the topological sort of vertices

Definition at line 491 of file basic_block.hpp.

Member Function Documentation

◆ operator()()

bool bb_vertex_order_by_map::operator() ( const vertex  x,
const vertex  y 
) const
inline

Compares position of two vertices sorted in topological order.

Parameters
xis the first vertex
yis the second vertex
Returns
true if x precedes y in the topological order, false otherwise

Definition at line 501 of file basic_block.hpp.

Field Documentation

◆ ref

const std::map<vertex, unsigned int>& bb_vertex_order_by_map::ref
private

Topological sorted vertices.

Definition at line 484 of file basic_block.hpp.


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

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