Implement a double ended queue with fixed number of fixed size buffer to be stored.
More...
#include <FixedSizeDeque.hpp>
|
| FixedSizeDeque (IndexType maxEntries, IndexType valuesPerEntry, LvArray::MemorySpace space, camp::resources::Resource stream) |
|
bool | empty () const |
|
bool | full () const |
|
size_t | size () const |
|
size_t | capacity () const |
|
ArraySlice1DLarge | front () const |
|
ArraySlice1DLarge | next_front () const |
|
ArraySlice1DLarge | back () const |
|
ArraySlice1DLarge | next_back () const |
|
void | pop_front () |
| Removes first array of the queue.
|
|
void | pop_back () |
| Removes last array of the queue.
|
|
void | inc_front () |
| Add one array (uninitialized) at the front of the queue.
|
|
void | inc_back () |
| Add one array (uninitialized) at the end of the queue.
|
|
template<typename INDEX_TYPE2 > |
camp::resources::Event | emplace_front (const LvArray::ArraySlice< T const, 1, 0, INDEX_TYPE2 > &src) |
|
template<typename INDEX_TYPE2 > |
camp::resources::Event | emplace_back (const LvArray::ArraySlice< T const, 1, 0, INDEX_TYPE2 > &src) |
|
camp::resources::Resource | getStream () |
|
template<typename T, typename INDEX_TYPE>
class geos::FixedSizeDeque< T, INDEX_TYPE >
Implement a double ended queue with fixed number of fixed size buffer to be stored.
Definition at line 30 of file FixedSizeDeque.hpp.
◆ FixedSizeDeque()
template<typename T , typename INDEX_TYPE >
Create a fixed size double ended queue.
- Parameters
-
maxEntries | Maximum number of array to store in the queue. |
valuesPerEntry | Number of values in each array of the deque. |
space | Space used to store que queue. |
stream | Camp resource to perform the copies. |
Definition at line 47 of file FixedSizeDeque.hpp.
◆ back()
template<typename T , typename INDEX_TYPE >
◆ capacity()
template<typename T , typename INDEX_TYPE >
- Returns
- the maximum number of array that can be store in the queue
Definition at line 74 of file FixedSizeDeque.hpp.
◆ emplace_back()
template<typename T , typename INDEX_TYPE >
template<typename INDEX_TYPE2 >
camp::resources::Event geos::FixedSizeDeque< T, INDEX_TYPE >::emplace_back |
( |
const LvArray::ArraySlice< T const, 1, 0, INDEX_TYPE2 > & |
src | ) |
|
|
inline |
Add one array (copy of src) at the end of the queue
- Parameters
-
src | Array to emplace at the end of the queue |
- Returns
- Event associated to the copy.
Definition at line 157 of file FixedSizeDeque.hpp.
◆ emplace_front()
template<typename T , typename INDEX_TYPE >
template<typename INDEX_TYPE2 >
camp::resources::Event geos::FixedSizeDeque< T, INDEX_TYPE >::emplace_front |
( |
const LvArray::ArraySlice< T const, 1, 0, INDEX_TYPE2 > & |
src | ) |
|
|
inline |
Add one array (copy of src) at the front of the queue
- Parameters
-
src | Array to emplace at the front of the queue |
- Returns
- Event associated to the copy.
Definition at line 142 of file FixedSizeDeque.hpp.
◆ empty()
template<typename T , typename INDEX_TYPE >
◆ front()
template<typename T , typename INDEX_TYPE >
◆ full()
template<typename T , typename INDEX_TYPE >
◆ getStream()
template<typename T , typename INDEX_TYPE >
Getter for the associated stream.
- Returns
- the associated stream.
Definition at line 171 of file FixedSizeDeque.hpp.
◆ next_back()
template<typename T , typename INDEX_TYPE >
- Returns
- the future last array of the queue when inc_back will be called
Definition at line 101 of file FixedSizeDeque.hpp.
◆ next_front()
template<typename T , typename INDEX_TYPE >
- Returns
- the future first array in the queue after inc_front will be called
Definition at line 87 of file FixedSizeDeque.hpp.
◆ size()
template<typename T , typename INDEX_TYPE >
The documentation for this class was generated from the following file: