ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::DequeFrontier< Q > Class Template Reference

a deque as \( S \), the rule of Pape and D'Esopo: a node at the tail the first time, at the head afterwards, extracted from the head More...

#include <ADS/graph/ShortestPaths.h>

Public member functions

 DequeFrontier (Q &q)
 \( S \) on the empty structure \( q \)
template<class D>
void add (int v, const D &, bool first)
 \( v \) at the tail of \( S \) if first, at its head if not
int extract (void)
 a node out of \( S \)
template<class D>
void update (int, const D &)
 nothing: the order of \( S \) does not depend on the distances
bool empty (void) const
 whether \( S \) is empty

Detailed description

template<class Q>
class ADS::DequeFrontier< Q >

a deque as \( S \), the rule of Pape and D'Esopo: a node at the tail the first time, at the head afterwards, extracted from the head

Constructor and destructor documentation

◆ DequeFrontier()

template<class Q>
ADS::DequeFrontier< Q >::DequeFrontier ( Q & q)
inlineexplicit

\( S \) on the empty structure \( q \)

Member function documentation

◆ add()

template<class Q>
template<class D>
void ADS::DequeFrontier< Q >::add ( int v,
const D & ,
bool first )
inline

\( v \) at the tail of \( S \) if first, at its head if not

◆ empty()

template<class Q>
bool ADS::DequeFrontier< Q >::empty ( void ) const
inlinenodiscard

whether \( S \) is empty

◆ extract()

template<class Q>
int ADS::DequeFrontier< Q >::extract ( void )
inline

a node out of \( S \)

◆ update()

template<class Q>
template<class D>
void ADS::DequeFrontier< Q >::update ( int ,
const D &  )
inline

nothing: the order of \( S \) does not depend on the distances


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