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

The key comparison function for edge-integer set based on levels. More...

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

Public Member Functions

 edge_integer_order_by_map (const std::map< vertex, unsigned int > &_ref, const graph *)
 Graph. More...
 
bool operator() (const std::pair< std::pair< vertex, vertex >, unsigned int > &x, const std::pair< std::pair< vertex, vertex >, unsigned int > &y) const
 Compare position of two vertices in topological sorted. More...
 

Private Attributes

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

Detailed Description

The key comparison function for edge-integer set based on levels.

Definition at line 215 of file parametric_list_based.cpp.

Constructor & Destructor Documentation

◆ edge_integer_order_by_map()

edge_integer_order_by_map::edge_integer_order_by_map ( const std::map< vertex, unsigned int > &  _ref,
const graph  
)
inline

Graph.

Constructor

Parameters
refis the map with the topological sort of vertices
gis a graph used only for debugging purpose to print name of vertex

Definition at line 232 of file parametric_list_based.cpp.

Member Function Documentation

◆ operator()()

bool edge_integer_order_by_map::operator() ( const std::pair< std::pair< vertex, vertex >, unsigned int > &  x,
const std::pair< std::pair< vertex, vertex >, unsigned int > &  y 
) const
inline

Compare position of two vertices in topological sorted.

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

Definition at line 249 of file parametric_list_based.cpp.

References GET_NAME, THROW_ASSERT, and x.

Field Documentation

◆ ref

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

Topological sorted vertices.

Definition at line 219 of file parametric_list_based.cpp.


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

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