NeoPZ
Public Member Functions | Private Attributes | List of all members
TPZLimitedPriorityQueue< T, Compare > Class Template Reference

#include <TPZLimitedPriorityQueue.h>

Inheritance diagram for TPZLimitedPriorityQueue< T, Compare >:
[legend]
Collaboration diagram for TPZLimitedPriorityQueue< T, Compare >:
[legend]

Public Member Functions

 TPZLimitedPriorityQueue (const typename std::vector< T >::size_type limit)
 
 TPZLimitedPriorityQueue (const TPZLimitedPriorityQueue &orig)=default
 
TPZLimitedPriorityQueueoperator= (const TPZLimitedPriorityQueue &other)
 
void addItem (const T &item)
 
virtual ~TPZLimitedPriorityQueue ()=default
 
- Public Member Functions inherited from TPZPriorityQueue< T, std::vector< T >, Compare >
 TPZPriorityQueue ()
 
 TPZPriorityQueue (const TPZPriorityQueue &other)
 
TPZPriorityQueueoperator= (const TPZPriorityQueue &other)
 
void addItem (const T &item)
 
popTop ()
 
bool remove (T &value)
 
void remove (const typename std::vector< T > ::size_type begin, const typename std::vector< T > ::size_type end)
 
top ()
 
std::vector< T > ::size_type size () const
 
const T & getItem (const typename std::vector< T > ::size_type index) const
 
void pop ()
 
void pop_back (const typename std::vector< T > ::size_type count)
 
void push (T &item)
 
void push (const T &item)
 

Private Attributes

std::vector< T >::size_type limit
 

Additional Inherited Members

- Public Attributes inherited from TPZPriorityQueue< T, std::vector< T >, Compare >
std::mutex mMutex
 
- Protected Attributes inherited from TPZPriorityQueue< T, std::vector< T >, Compare >
std::vector< T > c
 
Compare comp
 

Detailed Description

template<class T, class Compare = std::less<typename std::vector<T>::value_type>>
class TPZLimitedPriorityQueue< T, Compare >

Definition at line 15 of file TPZLimitedPriorityQueue.h.

Constructor & Destructor Documentation

◆ TPZLimitedPriorityQueue() [1/2]

template<class T , class Compare = std::less<typename std::vector<T>::value_type>>
TPZLimitedPriorityQueue< T, Compare >::TPZLimitedPriorityQueue ( const typename std::vector< T >::size_type  limit)
inline

Definition at line 17 of file TPZLimitedPriorityQueue.h.

◆ TPZLimitedPriorityQueue() [2/2]

template<class T , class Compare = std::less<typename std::vector<T>::value_type>>
TPZLimitedPriorityQueue< T, Compare >::TPZLimitedPriorityQueue ( const TPZLimitedPriorityQueue< T, Compare > &  orig)
default

◆ ~TPZLimitedPriorityQueue()

template<class T , class Compare = std::less<typename std::vector<T>::value_type>>
virtual TPZLimitedPriorityQueue< T, Compare >::~TPZLimitedPriorityQueue ( )
virtualdefault

Member Function Documentation

◆ addItem()

template<class T , class Compare = std::less<typename std::vector<T>::value_type>>
void TPZLimitedPriorityQueue< T, Compare >::addItem ( const T &  item)
inline

◆ operator=()

template<class T , class Compare = std::less<typename std::vector<T>::value_type>>
TPZLimitedPriorityQueue& TPZLimitedPriorityQueue< T, Compare >::operator= ( const TPZLimitedPriorityQueue< T, Compare > &  other)
inline

Member Data Documentation

◆ limit

template<class T , class Compare = std::less<typename std::vector<T>::value_type>>
std::vector<T>::size_type TPZLimitedPriorityQueue< T, Compare >::limit
private

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