HavoqGT
havoqgt::mpi::bfs_priority_queue< Visitor > Class Template Reference

#include <breadth_first_search.hpp>

Public Member Functions

 bfs_priority_queue ()
 
bool push (Visitor const &task)
 
void pop ()
 
Visitor const & top ()
 
size_t size () const
 
bool empty () const
 
void clear ()
 

Protected Attributes

std::priority_queue< Visitor, std::deque< Visitor >, std::greater< Visitor > > m_data
 

Detailed Description

template<typename Visitor>
class havoqgt::mpi::bfs_priority_queue< Visitor >

Definition at line 63 of file breadth_first_search.hpp.

Constructor & Destructor Documentation

template<typename Visitor >
havoqgt::mpi::bfs_priority_queue< Visitor >::bfs_priority_queue ( )
inline

Definition at line 70 of file breadth_first_search.hpp.

70 { }

Member Function Documentation

template<typename Visitor >
void havoqgt::mpi::bfs_priority_queue< Visitor >::clear ( )
inline

Definition at line 98 of file breadth_first_search.hpp.

99  {
100  m_data.clear();
101  }
std::priority_queue< Visitor, std::deque< Visitor >, std::greater< Visitor > > m_data
template<typename Visitor >
bool havoqgt::mpi::bfs_priority_queue< Visitor >::empty ( ) const
inline

Definition at line 93 of file breadth_first_search.hpp.

94  {
95  return m_data.empty();
96  }
std::priority_queue< Visitor, std::deque< Visitor >, std::greater< Visitor > > m_data
template<typename Visitor >
void havoqgt::mpi::bfs_priority_queue< Visitor >::pop ( )
inline

Definition at line 78 of file breadth_first_search.hpp.

79  {
80  m_data.pop();
81  }
std::priority_queue< Visitor, std::deque< Visitor >, std::greater< Visitor > > m_data
template<typename Visitor >
bool havoqgt::mpi::bfs_priority_queue< Visitor >::push ( Visitor const &  task)
inline

Definition at line 72 of file breadth_first_search.hpp.

73  {
74  m_data.push(task);
75  return true;
76  }
std::priority_queue< Visitor, std::deque< Visitor >, std::greater< Visitor > > m_data
template<typename Visitor >
size_t havoqgt::mpi::bfs_priority_queue< Visitor >::size ( ) const
inline

Definition at line 88 of file breadth_first_search.hpp.

89  {
90  return m_data.size();;
91  }
std::priority_queue< Visitor, std::deque< Visitor >, std::greater< Visitor > > m_data
template<typename Visitor >
Visitor const& havoqgt::mpi::bfs_priority_queue< Visitor >::top ( )
inline

Definition at line 83 of file breadth_first_search.hpp.

84  {
85  return m_data.top();
86  }
std::priority_queue< Visitor, std::deque< Visitor >, std::greater< Visitor > > m_data

Member Data Documentation

template<typename Visitor >
std::priority_queue< Visitor, std::deque<Visitor>, std::greater<Visitor> > havoqgt::mpi::bfs_priority_queue< Visitor >::m_data
protected

Definition at line 68 of file breadth_first_search.hpp.


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