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

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

#include <function_behavior.hpp>

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

Public Member Functions

 op_vertex_order_by_map (const std::map< vertex, unsigned int > &ref_, const graph *)
 Graph. More...
 
bool operator() (const vertex x, const vertex 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 vertices set based on levels.

Definition at line 900 of file function_behavior.hpp.

Constructor & Destructor Documentation

◆ op_vertex_order_by_map()

op_vertex_order_by_map::op_vertex_order_by_map ( const std::map< vertex, unsigned int > &  ref_,
const graph  
)
inline

Graph.

Constructor

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

Definition at line 917 of file function_behavior.hpp.

References x.

Member Function Documentation

◆ operator()()

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

Compare position of two vertices in topological sorted.

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

Definition at line 678 of file function_behavior.cpp.

References GET_NAME, and THROW_ASSERT.

Field Documentation

◆ ref

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

Topological sorted vertices.

Definition at line 904 of file function_behavior.hpp.


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

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