WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
wpi::util::FastQueue< T, MAX_BLOCK_SIZE > Class Template Reference

#include <wpi/util/FastQueue.hpp>

Public Types

typedef T value_type

Public Member Functions

 FastQueue (size_t size=15)
 FastQueue (FastQueue &&other)
FastQueueoperator= (FastQueue &&other)
 ~FastQueue ()
WPI_FQ_FORCEINLINE bool try_enqueue (T const &element)
WPI_FQ_FORCEINLINE bool try_enqueue (T &&element)
template<typename... Args>
WPI_FQ_FORCEINLINE bool try_emplace (Args &&... args)
WPI_FQ_FORCEINLINE bool enqueue (T const &element)
WPI_FQ_FORCEINLINE bool enqueue (T &&element)
template<typename... Args>
WPI_FQ_FORCEINLINE bool emplace (Args &&... args)
template<typename U>
bool try_dequeue (U &result)
T * peek () const
bool pop ()
bool empty () const
size_t size () const
size_t max_capacity () const

Member Typedef Documentation

◆ value_type

template<typename T, size_t MAX_BLOCK_SIZE = 512>
typedef T wpi::util::FastQueue< T, MAX_BLOCK_SIZE >::value_type

Constructor & Destructor Documentation

◆ FastQueue() [1/2]

template<typename T, size_t MAX_BLOCK_SIZE = 512>
wpi::util::FastQueue< T, MAX_BLOCK_SIZE >::FastQueue ( size_t size = 15)
inlineexplicit

◆ FastQueue() [2/2]

template<typename T, size_t MAX_BLOCK_SIZE = 512>
wpi::util::FastQueue< T, MAX_BLOCK_SIZE >::FastQueue ( FastQueue< T, MAX_BLOCK_SIZE > && other)
inline

◆ ~FastQueue()

template<typename T, size_t MAX_BLOCK_SIZE = 512>
wpi::util::FastQueue< T, MAX_BLOCK_SIZE >::~FastQueue ( )
inline

Member Function Documentation

◆ emplace()

template<typename T, size_t MAX_BLOCK_SIZE = 512>
template<typename... Args>
WPI_FQ_FORCEINLINE bool wpi::util::FastQueue< T, MAX_BLOCK_SIZE >::emplace ( Args &&... args)
inline

◆ empty()

template<typename T, size_t MAX_BLOCK_SIZE = 512>
bool wpi::util::FastQueue< T, MAX_BLOCK_SIZE >::empty ( ) const
inline

◆ enqueue() [1/2]

template<typename T, size_t MAX_BLOCK_SIZE = 512>
WPI_FQ_FORCEINLINE bool wpi::util::FastQueue< T, MAX_BLOCK_SIZE >::enqueue ( T && element)
inline

◆ enqueue() [2/2]

template<typename T, size_t MAX_BLOCK_SIZE = 512>
WPI_FQ_FORCEINLINE bool wpi::util::FastQueue< T, MAX_BLOCK_SIZE >::enqueue ( T const & element)
inline

◆ max_capacity()

template<typename T, size_t MAX_BLOCK_SIZE = 512>
size_t wpi::util::FastQueue< T, MAX_BLOCK_SIZE >::max_capacity ( ) const
inline

◆ operator=()

template<typename T, size_t MAX_BLOCK_SIZE = 512>
FastQueue & wpi::util::FastQueue< T, MAX_BLOCK_SIZE >::operator= ( FastQueue< T, MAX_BLOCK_SIZE > && other)
inline

◆ peek()

template<typename T, size_t MAX_BLOCK_SIZE = 512>
T * wpi::util::FastQueue< T, MAX_BLOCK_SIZE >::peek ( ) const
inline

◆ pop()

template<typename T, size_t MAX_BLOCK_SIZE = 512>
bool wpi::util::FastQueue< T, MAX_BLOCK_SIZE >::pop ( )
inline

◆ size()

template<typename T, size_t MAX_BLOCK_SIZE = 512>
size_t wpi::util::FastQueue< T, MAX_BLOCK_SIZE >::size ( ) const
inline

◆ try_dequeue()

template<typename T, size_t MAX_BLOCK_SIZE = 512>
template<typename U>
bool wpi::util::FastQueue< T, MAX_BLOCK_SIZE >::try_dequeue ( U & result)
inline

◆ try_emplace()

template<typename T, size_t MAX_BLOCK_SIZE = 512>
template<typename... Args>
WPI_FQ_FORCEINLINE bool wpi::util::FastQueue< T, MAX_BLOCK_SIZE >::try_emplace ( Args &&... args)
inline

◆ try_enqueue() [1/2]

template<typename T, size_t MAX_BLOCK_SIZE = 512>
WPI_FQ_FORCEINLINE bool wpi::util::FastQueue< T, MAX_BLOCK_SIZE >::try_enqueue ( T && element)
inline

◆ try_enqueue() [2/2]

template<typename T, size_t MAX_BLOCK_SIZE = 512>
WPI_FQ_FORCEINLINE bool wpi::util::FastQueue< T, MAX_BLOCK_SIZE >::try_enqueue ( T const & element)
inline

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