PandA-2024.02
Public Member Functions | Private Attributes
priority_compare_functor< Type > Struct Template Reference

Functor used to compare two vertices with respect to a priority object. More...

#include <priority.hpp>

Collaboration diagram for priority_compare_functor< Type >:
Collaboration graph
[legend]

Public Member Functions

bool operator() (const vertex &a, const vertex &b) const
 functor function used to compare two vertices with respect to the priority data structure. More...
 
 priority_compare_functor (const refcount< priority_data< Type >> pri)
 Constructor. More...
 
priority_compare_functoroperator= (const priority_compare_functor &in)
 Copy assignment. More...
 
 priority_compare_functor (const priority_compare_functor &in)
 Copy constructor. More...
 
 ~priority_compare_functor ()=default
 Destructor. More...
 

Private Attributes

const refcount< priority_data< Type > > priority_values
 copy of the priority values More...
 

Detailed Description

template<class Type>
struct priority_compare_functor< Type >

Functor used to compare two vertices with respect to a priority object.

Definition at line 170 of file priority.hpp.

Constructor & Destructor Documentation

◆ priority_compare_functor() [1/2]

template<class Type>
priority_compare_functor< Type >::priority_compare_functor ( const refcount< priority_data< Type >>  pri)
inlineexplicit

Constructor.

Parameters
priis the priority data structure which associate at each vertex a priority value of type Type.

Definition at line 188 of file priority.hpp.

◆ priority_compare_functor() [2/2]

template<class Type>
priority_compare_functor< Type >::priority_compare_functor ( const priority_compare_functor< Type > &  in)
inline

Copy constructor.

Definition at line 203 of file priority.hpp.

◆ ~priority_compare_functor()

template<class Type>
priority_compare_functor< Type >::~priority_compare_functor ( )
default

Destructor.

Member Function Documentation

◆ operator()()

template<class Type>
bool priority_compare_functor< Type >::operator() ( const vertex a,
const vertex b 
) const
inline

functor function used to compare two vertices with respect to the priority data structure.

Parameters
ais the first vertex
bis the second vertex
Returns
true when priority(a) < priority(b)

Definition at line 178 of file priority.hpp.

References priority_data< dataType >::priority_values.

◆ operator=()

template<class Type>
priority_compare_functor& priority_compare_functor< Type >::operator= ( const priority_compare_functor< Type > &  in)
inline

Field Documentation

◆ priority_values

template<class Type>
const refcount<priority_data<Type> > priority_compare_functor< Type >::priority_values
private

copy of the priority values

Definition at line 214 of file priority.hpp.

Referenced by priority_compare_functor< Type >::operator=().


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

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