FleCSI Core API Version: 2.3.2
 
Loading...
Searching...
No Matches
queue< T, SIZE > Class Template Reference

A simple queue implementation based on a std::array This class is supported for GPU execution. More...

Public Member Functions

constexpr bool empty () const
 Check if the queue is empty.
 
constexpr const value_type & front () const
 Return the first element in the queue.
 
constexpr value_type pop ()
 Remove the first element in the queue and return it.
 
constexpr void push (const value_type &v)
 Push an element in the queue.
 

Detailed Description

template<typename T, std::size_t SIZE>
class flecsi::util::queue< T, SIZE >

A simple queue implementation based on a std::array This class is supported for GPU execution.

Member Function Documentation

◆ push()

template<typename T , std::size_t SIZE>
void push ( const value_type & v)
constexpr

Push an element in the queue.

Parameters
vElement to be inserted

◆ front()

template<typename T , std::size_t SIZE>
const value_type & front ( ) const
constexpr

Return the first element in the queue.

◆ pop()

template<typename T , std::size_t SIZE>
value_type pop ( )
constexpr

Remove the first element in the queue and return it.

◆ empty()

template<typename T , std::size_t SIZE>
bool empty ( ) const
constexpr

Check if the queue is empty.