WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
wpi::FastQueue< T, MAX_BLOCK_SIZE > Class Template Reference

#include <wpi/FastQueue.h>

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>
T wpi::FastQueue< T, MAX_BLOCK_SIZE >::value_type

Constructor & Destructor Documentation

◆ FastQueue() [1/2]

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

◆ FastQueue() [2/2]

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

◆ ~FastQueue()

template<typename T , size_t MAX_BLOCK_SIZE = 512>
wpi::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::FastQueue< T, MAX_BLOCK_SIZE >::emplace ( Args &&... args)
inline

◆ empty()

template<typename T , size_t MAX_BLOCK_SIZE = 512>
bool wpi::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::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::FastQueue< T, MAX_BLOCK_SIZE >::enqueue ( T const & element)
inline

◆ max_capacity()

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

◆ operator=()

template<typename T , size_t MAX_BLOCK_SIZE = 512>
FastQueue & wpi::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::FastQueue< T, MAX_BLOCK_SIZE >::peek ( ) const
inline

◆ pop()

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

◆ size()

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

◆ try_dequeue()

template<typename T , size_t MAX_BLOCK_SIZE = 512>
template<typename U >
bool wpi::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::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::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::FastQueue< T, MAX_BLOCK_SIZE >::try_enqueue ( T const & element)
inline

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