Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::Dft_Arc_Cmp< GT > Struct Template Reference

Default arc comparison class for Arcs_Index. More...

#include <tpl_graph_indexes.H>

Public Member Functions

bool operator() (typename GT::Arc *a1, typename GT::Arc *a2) const
 Comparison operator.
 

Detailed Description

template<class GT>
struct Aleph::Dft_Arc_Cmp< GT >

Default arc comparison class for Arcs_Index.

Compares arcs based on their source and target nodes.

Template Parameters
GTGraph type

Definition at line 81 of file tpl_graph_indexes.H.

Member Function Documentation

◆ operator()()

template<class GT >
bool Aleph::Dft_Arc_Cmp< GT >::operator() ( typename GT::Arc a1,
typename GT::Arc a2 
) const
inline

Comparison operator.

Parameters
a1First arc to compare
a2Second arc to compare
Returns
True if a1's source node is less than a2's source node, or if source nodes are equal and a1's target node is less than a2's target node

Definition at line 91 of file tpl_graph_indexes.H.

References Aleph::maps(), GTArcCommon< ArcInfo >::src_node, and GTArcCommon< ArcInfo >::tgt_node.


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