#include "ring_buffer.hpp"

Public Types | |
| using | Type = T |
| using | Handle = size_t |
Public Member Functions | |
| RingBuffer () | |
| ~RingBuffer () | |
| template<typename FuncOnAdd , typename FuncOnRemove , typename... Args> | |
| void | push (FuncOnAdd &&on_add, FuncOnRemove &&on_remove, Args &&... args) |
| template<typename FuncOnRemove > | |
| void | pop (FuncOnRemove &&on_remove) |
| template<typename Func > | |
| void | foreach (Func &&f) |
| Type & | getItem (Handle h) |
| Type const & | getItem (Handle h) const |
| bool | empty () const |
| size_t | size () const |
Ring buffer implementation with static array layout. Can be used on stack.
| T | - type of element of the buffer |
| Count | - number of the elements in the buffer |
| using iroha::containers::RingBuffer< T, Count >::Handle = size_t |
| using iroha::containers::RingBuffer< T, Count >::Type = T |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |

|
inline |

|
inline |