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

#include <page_rank.hpp>

Public Member Functions

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

Protected Attributes

std::vector< Visitor > m_data
 

Detailed Description

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

Definition at line 65 of file page_rank.hpp.

Constructor & Destructor Documentation

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

Definition at line 71 of file page_rank.hpp.

71 { }

Member Function Documentation

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

Definition at line 99 of file page_rank.hpp.

100  {
101  m_data.clear();
102  }
std::vector< Visitor > m_data
Definition: page_rank.hpp:69
template<typename Visitor >
bool havoqgt::mpi::pr_queue< Visitor >::empty ( ) const
inline

Definition at line 94 of file page_rank.hpp.

95  {
96  return m_data.empty();
97  }
std::vector< Visitor > m_data
Definition: page_rank.hpp:69
template<typename Visitor >
void havoqgt::mpi::pr_queue< Visitor >::pop ( )
inline

Definition at line 79 of file page_rank.hpp.

80  {
81  m_data.pop_back();
82  }
std::vector< Visitor > m_data
Definition: page_rank.hpp:69
template<typename Visitor >
bool havoqgt::mpi::pr_queue< Visitor >::push ( Visitor const &  task)
inline

Definition at line 73 of file page_rank.hpp.

74  {
75  m_data.push_back(task);
76  return true;
77  }
std::vector< Visitor > m_data
Definition: page_rank.hpp:69
template<typename Visitor >
size_t havoqgt::mpi::pr_queue< Visitor >::size ( ) const
inline

Definition at line 89 of file page_rank.hpp.

90  {
91  return m_data.size();;
92  }
std::vector< Visitor > m_data
Definition: page_rank.hpp:69
template<typename Visitor >
Visitor const& havoqgt::mpi::pr_queue< Visitor >::top ( )
inline

Definition at line 84 of file page_rank.hpp.

85  {
86  return m_data.back();
87  }
std::vector< Visitor > m_data
Definition: page_rank.hpp:69

Member Data Documentation

template<typename Visitor >
std::vector< Visitor > havoqgt::mpi::pr_queue< Visitor >::m_data
protected

Definition at line 69 of file page_rank.hpp.


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