|
esp8266ndn
NDN Arduino library for ESP8266 and more
|
Generic non-thread-safe queue. More...
#include <simple-queue.hpp>
Inherited by ndnph::DynamicSimpleQueue< T >, and ndnph::StaticSimpleQueue< T, C >.
Public Types | |
| using | Item = T |
Public Member Functions | |
| bool | push (Item item) |
| std::tuple< Item, bool > | pop () |
| size_t | capacity () const |
| size_t | size () const |
| size_t | available () const |
Protected Member Functions | |
| SimpleQueue (Item *arr, size_t cap) | |
| Constructor. | |
| Item * | getArray () |
Generic non-thread-safe queue.
| using ndnph::SimpleQueue< T >::Item = T |
|
inlineexplicitprotected |
Constructor.
| arr | array of cap+1 items |
| cap | maximum number of items |
|
inline |
|
inline |
|
inlineprotected |
|
inline |
|
inline |
|
inline |