Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::queue< DATA_TYPE, CONTAINER, SAFE > Class Template Reference
Inheritance diagram for duckdb::queue< DATA_TYPE, CONTAINER, SAFE >:
Collaboration diagram for duckdb::queue< DATA_TYPE, CONTAINER, SAFE >:

Public Types

using original = std::queue< DATA_TYPE, CONTAINER >
 
using container_type = typename original::container_type
 
using value_type = typename original::value_type
 
using size_type = typename container_type::size_type
 
using reference = typename container_type::reference
 
using const_reference = typename container_type::const_reference
 

Public Member Functions

 queue (original &&other)
 
template<bool INTERNAL_SAFE>
 queue (queue< DATA_TYPE, CONTAINER, INTERNAL_SAFE > &&other)
 
void clear () noexcept
 
reference front ()
 
const_reference front () const
 
reference back ()
 
const_reference back () const
 
void pop ()
 

Constructor & Destructor Documentation

◆ queue() [1/2]

template<class DATA_TYPE , class CONTAINER = std::deque<DATA_TYPE>, bool SAFE = true>
duckdb::queue< DATA_TYPE, CONTAINER, SAFE >::queue ( original &&  other)
inline
41062 : original(std::move(other)) { // NOLINT: allow implicit conversion
41063 }

◆ queue() [2/2]

template<class DATA_TYPE , class CONTAINER = std::deque<DATA_TYPE>, bool SAFE = true>
template<bool INTERNAL_SAFE>
duckdb::queue< DATA_TYPE, CONTAINER, SAFE >::queue ( queue< DATA_TYPE, CONTAINER, INTERNAL_SAFE > &&  other)
inline
41065 : original(std::move(other)) { // NOLINT
41066 }

Member Function Documentation

◆ clear()

template<class DATA_TYPE , class CONTAINER = std::deque<DATA_TYPE>, bool SAFE = true>
void duckdb::queue< DATA_TYPE, CONTAINER, SAFE >::clear ( )
inlinenoexcept
41068 {
41069 original::c.clear();
41070 }

◆ front() [1/2]

template<class DATA_TYPE , class CONTAINER = std::deque<DATA_TYPE>, bool SAFE = true>
reference duckdb::queue< DATA_TYPE, CONTAINER, SAFE >::front ( )
inline
41072 {
41073 if (MemorySafety<SAFE>::ENABLED && original::empty()) {
41074 throw InternalException("'front' called on an empty queue!");
41075 }
41076 return original::front();
41077 }

◆ front() [2/2]

template<class DATA_TYPE , class CONTAINER = std::deque<DATA_TYPE>, bool SAFE = true>
const_reference duckdb::queue< DATA_TYPE, CONTAINER, SAFE >::front ( ) const
inline
41079 {
41080 if (MemorySafety<SAFE>::ENABLED && original::empty()) {
41081 throw InternalException("'front' called on an empty queue!");
41082 }
41083 return original::front();
41084 }

◆ back() [1/2]

template<class DATA_TYPE , class CONTAINER = std::deque<DATA_TYPE>, bool SAFE = true>
reference duckdb::queue< DATA_TYPE, CONTAINER, SAFE >::back ( )
inline
41086 {
41087 if (MemorySafety<SAFE>::ENABLED && original::empty()) {
41088 throw InternalException("'back' called on an empty queue!");
41089 }
41090 return original::back();
41091 }

◆ back() [2/2]

template<class DATA_TYPE , class CONTAINER = std::deque<DATA_TYPE>, bool SAFE = true>
const_reference duckdb::queue< DATA_TYPE, CONTAINER, SAFE >::back ( ) const
inline
41093 {
41094 if (MemorySafety<SAFE>::ENABLED && original::empty()) {
41095 throw InternalException("'back' called on an empty queue!");
41096 }
41097 return original::back();
41098 }

◆ pop()

template<class DATA_TYPE , class CONTAINER = std::deque<DATA_TYPE>, bool SAFE = true>
void duckdb::queue< DATA_TYPE, CONTAINER, SAFE >::pop ( )
inline
41100 {
41101 if (MemorySafety<SAFE>::ENABLED && original::empty()) {
41102 throw InternalException("'pop' called on an empty queue!");
41103 }
41104 original::pop();
41105 }

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