libjmmcg
release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
|
An adaptor for collections that batches up to I items being both added to or removed from the collection, Colln. More...
#include <batch.hpp>
Public Types | |
typedef front_batch< Colln, I > | base_t |
typedef base_t::thread_traits | thread_traits |
typedef base_t::container_type | container_type |
typedef container_type::value_type | value_type |
typedef container_type::exception_type | exception_type |
![]() | |
typedef Colln | base_t |
typedef base_t::thread_traits | thread_traits |
typedef Colln | container_type |
typedef container_type::value_ret_type | value_ret_type |
typedef container_type::exception_type | exeception_type |
Public Member Functions | |
constexpr | back_batch () noexcept(noexcept(base_t())) |
back_batch (typename base_t::have_work_type::atomic_t &a) noexcept(noexcept(base_t(a))) | |
![]() | |
constexpr | front_batch () noexcept(noexcept(base_t())) |
front_batch (typename base_t::have_work_type::atomic_t &a) noexcept(noexcept(base_t(std::declval< base_t >()))) | |
front_batch (front_batch const &fb) noexcept(noexcept(base_t(std::declval< front_batch >()))) | |
front_batch &__fastcall FORCE_INLINE | operator= (front_batch const &fb) noexcept(noexcept(base_t::operator=(std::declval< front_batch >()))) |
value_ret_type __fastcall | pop_front_nochk_nolk () noexcept(true) FORCE_INLINE |
The items are batched when popped from the queue. More... | |
Additional Inherited Members | |
![]() | |
static constexpr unsigned long | max_size =I |
The maximum number of items to batch. More... | |
An adaptor for collections that batches up to I items being both added to or removed from the collection, Colln.
This means that as items are added to the collection, they are potentially added to the last item that was added to the collection. This implies that the Colln::value_type is some kind of collection to which the new work may be added.
typedef front_batch<Colln, I> jmmcg::LIBJMMCG_VER_NAMESPACE::back_batch< Colln, I >::base_t |
typedef base_t::container_type jmmcg::LIBJMMCG_VER_NAMESPACE::back_batch< Colln, I >::container_type |
typedef container_type::exception_type jmmcg::LIBJMMCG_VER_NAMESPACE::back_batch< Colln, I >::exception_type |
typedef base_t::thread_traits jmmcg::LIBJMMCG_VER_NAMESPACE::back_batch< Colln, I >::thread_traits |
typedef container_type::value_type jmmcg::LIBJMMCG_VER_NAMESPACE::back_batch< Colln, I >::value_type |
|
inlineconstexprnoexcept |
|
inlineexplicitnoexcept |