zpp
Zephyr C++20 Framework
|
fifo that references a k_fifo object More...
#include <fifo.hpp>
Public Member Functions | |
constexpr | fifo_ref (native_pointer f) noexcept |
wrap k_fifo More... | |
template<template< class > class T_Fifo> | |
constexpr | fifo_ref (T_Fifo< T_ItemType > &f) noexcept |
Reference another fifo object. More... | |
constexpr fifo_ref & | operator= (native_pointer f) noexcept |
Reference another fifo object. More... | |
template<template< class > class T_Fifo> | |
constexpr fifo_ref & | operator= (const T_Fifo< T_ItemType > &f) noexcept |
Reference another fifo object. More... | |
constexpr auto | native_handle () noexcept -> native_pointer |
get the Zephyr native fifo handle More... | |
constexpr auto | native_handle () const noexcept -> native_const_pointer |
get the Zephyr native fifo handle More... | |
fifo_ref ()=delete | |
Public Member Functions inherited from zpp::fifo_base< fifo_ref, T_ItemType > | |
fifo_base (const fifo_base &)=delete | |
fifo_base (fifo_base &&)=delete | |
constexpr auto | native_handle () noexcept -> native_pointer |
get the Zephyr native fifo handle More... | |
constexpr auto | native_handle () const noexcept -> native_const_pointer |
get the Zephyr native fifo handle More... | |
void | cancel_wait () noexcept |
force a waiting thread to return with a timeout error More... | |
void | push_back (item_pointer item) noexcept |
push an item on the back of the fifo More... | |
item_pointer | pop_front () noexcept |
pop item from fifo waiting for ever More... | |
item_pointer | try_pop_front () noexcept |
try to pop item from the fifo without waiting More... | |
item_pointer | try_pop_front_for (const std::chrono::duration< T_Rep, T_Period > &timeout) noexcept |
try to pop item from the fifo waiting a certain amount of time More... | |
item_pointer | front () noexcept |
get item at the front without removing it from the fifo More... | |
item_pointer | back () noexcept |
get item at the back without removing it from the fifo More... | |
bool | empty () noexcept |
check if the fifo is empty More... | |
fifo_base & | operator= (const fifo_base &)=delete |
fifo_base & | operator= (fifo_base &&)=delete |
Additional Inherited Members | |
Public Types inherited from zpp::fifo_base< fifo_ref, T_ItemType > | |
using | native_type = struct k_fifo |
using | native_pointer = native_type * |
using | native_const_pointer = native_type const * |
using | item_type = T_ItemType |
using | item_pointer = item_type * |
using | item_const_pointer = item_type const * |
Protected Member Functions inherited from zpp::fifo_base< fifo_ref, T_ItemType > | |
fifo_base () noexcept | |
default constructor, can only be called from derived types More... | |
fifo that references a k_fifo object
|
inlineexplicitconstexprnoexcept |
|
inlineexplicitconstexprnoexcept |
|
delete |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
get the Zephyr native fifo handle
Definition at line 292 of file fifo.hpp.
Referenced by zpp::fifo_ref< T_ItemType >::operator=().
|
inlineconstexprnoexcept |
Reference another fifo object.
f | the object to reference |
Definition at line 280 of file fifo.hpp.
References zpp::fifo_ref< T_ItemType >::native_handle().
|
inlineconstexprnoexcept |