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

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

#include <graph-dry.H>

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

Public Types

using Node = typename GT::Node
 

Public Member Functions

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

Public Attributes

Cmp & cmp
 

Detailed Description

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

Used internally for some graphs for compare their nodes.

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

Member Typedef Documentation

◆ Node

template<class GT , class Cmp >
using Cmp_Dlink_Node< GT, Cmp >::Node = typename GT::Node

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

Constructor & Destructor Documentation

◆ Cmp_Dlink_Node() [1/2]

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

◆ Cmp_Dlink_Node() [2/2]

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

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

Member Function Documentation

◆ operator()()

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

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

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

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

References Cmp_Dlink_Node< GT, Cmp >::cmp.

Member Data Documentation

◆ cmp

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

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

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


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