C++ Actor Framework 0.19
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Friends | List of all members
caf::async::batch Class Reference

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
 
batchoperator= (batch &&)=default
 
batchoperator= (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)
 

Detailed Description

A reference-counted container for transferring items from publishers to subscribers.


The documentation for this class was generated from the following file: