C++ Actor Framework 0.19
|
A reference-counted container for transferring items from publishers to subscribers. More...
#include <batch.hpp>
Public Types | |
using | item_destructor = void(*)(type_id_t, uint16_t, size_t, std::byte *) |
Public Member Functions | |
batch (batch &&)=default | |
batch (const batch &)=default | |
batch & | operator= (batch &&)=default |
batch & | operator= (const batch &)=default |
size_t | size () const noexcept |
bool | empty () const noexcept |
template<class T > | |
span< T > | items () noexcept |
template<class T > | |
span< const T > | items () const noexcept |
bool | save (serializer &f) const |
bool | save (binary_serializer &f) const |
bool | load (deserializer &f) |
bool | load (binary_deserializer &f) |
void | swap (batch &other) |
Friends | |
template<class T > | |
batch | make_batch (span< const T > items) |
A reference-counted container for transferring items from publishers to subscribers.