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

a queue as \( S \), enqueue() and dequeue(): first in, first out, so that a node leaves S at most n times unless a negative cycle is reachable More...

#include <ADS/graph/ShortestPaths.h>

Public member functions

 QueueFrontier (Q &q)
 \( S \) on the empty structure \( q \)
template<class D>
void add (int v, const D &, bool)
 \( v \) into \( S \)
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

Static public attributes

static constexpr bool fifo = true
 the bound of the extractions

Detailed description

template<class Q>
class ADS::QueueFrontier< Q >

a queue as \( S \), enqueue() and dequeue(): first in, first out, so that a node leaves S at most n times unless a negative cycle is reachable

Constructor and destructor documentation

◆ QueueFrontier()

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

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

Member function documentation

◆ add()

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

\( v \) into \( S \)

◆ empty()

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

whether \( S \) is empty

◆ extract()

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

a node out of \( S \)

◆ update()

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

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

Member data documentation

◆ fifo

template<class Q>
bool ADS::QueueFrontier< Q >::fifo = true
staticconstexpr

the bound of the extractions


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