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

Default node comparison class for Nodes_Index. More...

#include <tpl_graph_indexes.H>

Public Member Functions

bool operator() (typename GT::Node *p1, typename GT::Node *p2) const
 Comparison operator.
 
bool operator() (typename GT::Node *p1, typename GT::Node *p2) const
 

Detailed Description

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

Default node comparison class for Nodes_Index.

Compares nodes based on their info field.

Template Parameters
GTGraph type

Definition at line 58 of file tpl_graph_indexes.H.

Member Function Documentation

◆ operator()() [1/2]

template<class GT >
bool Aleph::Dft_Node_Cmp< GT >::operator() ( typename GT::Node p1,
typename GT::Node p2 
) const
inline

Comparison operator.

Parameters
p1First node to compare
p2Second node to compare
Returns
True if p1's info is less than p2's info

Definition at line 67 of file tpl_graph_indexes.H.

References GTNodeCommon< NodeInfo >::get_info().

◆ operator()() [2/2]

template<class GT >
bool Aleph::Dft_Node_Cmp< GT >::operator() ( typename GT::Node p1,
typename GT::Node p2 
) const
inline

Definition at line 87 of file tpl_indexNode.H.

References GTNodeCommon< NodeInfo >::get_info().


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