Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Cmp_Dlink_Arc< GT, Cmp > Struct Template Reference

Used internally for some graphs for compare their arcs. More...

#include <graph-dry.H>

Collaboration diagram for Cmp_Dlink_Arc< GT, Cmp >:
[legend]

Public Types

using Arc = typename GT::Arc
 

Public Member Functions

 Cmp_Dlink_Arc (Cmp &&)=delete
 
 Cmp_Dlink_Arc (Cmp &__cmp) noexcept
 
bool operator() (Dlink *d1, Dlink *d2) const noexcept(noexcept(static_cast< bool >(std::declval< Cmp & >()(std::declval< Arc *& >(), std::declval< Arc *& >()))))
 Whether cmp puts the arc of d1 before the arc of d2.
 

Public Attributes

Cmp & cmp
 

Detailed Description

template<class GT, class Cmp>
struct Cmp_Dlink_Arc< GT, Cmp >

Used internally for some graphs for compare their arcs.

Definition at line 644 of file graph-dry.H.

Member Typedef Documentation

◆ Arc

template<class GT , class Cmp >
using Cmp_Dlink_Arc< GT, Cmp >::Arc = typename GT::Arc

Definition at line 646 of file graph-dry.H.

Constructor & Destructor Documentation

◆ Cmp_Dlink_Arc() [1/2]

template<class GT , class Cmp >
Cmp_Dlink_Arc< GT, Cmp >::Cmp_Dlink_Arc ( Cmp &&  )
delete

◆ Cmp_Dlink_Arc() [2/2]

template<class GT , class Cmp >
Cmp_Dlink_Arc< GT, Cmp >::Cmp_Dlink_Arc ( Cmp &  __cmp)
inlinenoexcept

Definition at line 653 of file graph-dry.H.

Member Function Documentation

◆ operator()()

template<class GT , class Cmp >
bool Cmp_Dlink_Arc< GT, Cmp >::operator() ( Dlink *  d1,
Dlink *  d2 
) const
inlinenoexcept

Whether cmp puts the arc of d1 before the arc of d2.

Parameters
[in]d1the link of an arc.
[in]d2the link of another arc.
Returns
what cmp says of the two arcs, converted to bool.
Exceptions
anythingthat cmp or that conversion throws; noexcept when they throw nothing.

Definition at line 665 of file graph-dry.H.

References Cmp_Dlink_Arc< GT, Cmp >::cmp.

Member Data Documentation

◆ cmp

template<class GT , class Cmp >
Cmp& Cmp_Dlink_Arc< GT, Cmp >::cmp

Definition at line 648 of file graph-dry.H.

Referenced by Cmp_Dlink_Arc< GT, Cmp >::operator()().


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