PandA-2024.02
Public Member Functions | Data Fields
PrioritySorter Struct Reference

Sorter for connection. More...

#include <parametric_list_based.hpp>

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

Public Member Functions

 PrioritySorter (const refcount< priority_data< int >> priority, const OpGraphConstRef op_graph)
 Constructor. More...
 
bool operator() (const vertex x, const vertex y) const
 Compare position of two vertices. More...
 

Data Fields

refcount< priority_data< int > > priority
 The priority. More...
 
const OpGraphConstRef op_graph
 The operation graph. More...
 

Detailed Description

Sorter for connection.

Definition at line 81 of file parametric_list_based.hpp.

Constructor & Destructor Documentation

◆ PrioritySorter()

PrioritySorter::PrioritySorter ( const refcount< priority_data< int >>  priority,
const OpGraphConstRef  op_graph 
)

Constructor.

Parameters
priorityis the priority associated with each vertex
op_graphis the operation graph

Definition at line 78 of file parametric_list_based.cpp.

Member Function Documentation

◆ operator()()

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

Compare position of two vertices.

Parameters
xis the first vertex
yis the second vertex
Returns
true if index of x is less than y

Definition at line 83 of file parametric_list_based.cpp.

References GET_NAME, op_graph, and x.

Field Documentation

◆ op_graph

const OpGraphConstRef PrioritySorter::op_graph

The operation graph.

Definition at line 87 of file parametric_list_based.hpp.

Referenced by operator()().

◆ priority

refcount<priority_data<int> > PrioritySorter::priority

The priority.

Definition at line 84 of file parametric_list_based.hpp.


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

Generated on Mon Feb 12 2024 13:04:01 for PandA-2024.02 by doxygen 1.8.13