|
C++ Actor Framework 1.0.0
|
A reference-counted, type-erased container for transferring items from producers to consumers. More...
#include <batch.hpp>
Public Types | |
| using | item_destructor = void (*)(type_id_t, size_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 |
| type_id_t | item_type () const noexcept |
| template<class T > | |
| span< const T > | items () const |
| bool | save (serializer &f) const |
| bool | save (binary_serializer &f) const |
| bool | load (deserializer &f) |
| bool | load (binary_deserializer &f) |
| void | swap (batch &other) |
Static Public Member Functions | |
| template<class List > | |
| static batch | from (const List &items) |
A reference-counted, type-erased container for transferring items from producers to consumers.