libjmmcg  release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
jmmcg::LIBJMMCG_VER_NAMESPACE::cache::threading< Key, Val, Comp, Alloc >::single< API > Struct Template Reference

The sequential trait. More...

#include <cache.hpp>

Public Types

typedef std::map< Key, Val, Comp, Alloc > assoc_colln_t
 Use a standard map as the basic associative collection. More...
 
typedef assoc_colln_t::value_type::second_type mapped_type
 
typedef ppd::thread_pool< ppd::pool_traits::work_distribution_mode_t::one_thread_distributes<>, ppd::pool_traits::size_mode_t::sequential, ppd::pool_aspects< ppd::generic_traits::return_data::joinable, API, ppd::sequential_mode, ppd::pool_traits::normal_fifo > > flusher_pool_t
 A sequential trait for executing work from which we do not need to get the results. More...
 
typedef ppd::thread_pool< ppd::pool_traits::work_distribution_mode_t::worker_threads_get_work< ppd::pool_traits::work_distribution_mode_t::queue_model_t::pool_owns_queue >, ppd::pool_traits::size_mode_t::sequential, ppd::pool_aspects< ppd::generic_traits::return_data::joinable, API, ppd::sequential_mode, ppd::pool_traits::normal_fifo > > populate_pool_t
 A sequential trait for executing work from which we want to get the results. More...
 

Detailed Description

template<typename Key, typename Val, class Comp = std::less<Key>, class Alloc = std::allocator<Val>>
template<ppd::generic_traits::api_type API>
struct jmmcg::LIBJMMCG_VER_NAMESPACE::cache::threading< Key, Val, Comp, Alloc >::single< API >

The sequential trait.

Definition at line 49 of file cache.hpp.

Member Typedef Documentation

◆ assoc_colln_t

template<typename Key , typename Val , class Comp = std::less<Key>, class Alloc = std::allocator<Val>>
typedef std::map<Key, Val, Comp, Alloc> jmmcg::LIBJMMCG_VER_NAMESPACE::cache::threading< Key, Val, Comp, Alloc >::single< API >::assoc_colln_t

Use a standard map as the basic associative collection.

Definition at line 51 of file cache.hpp.

◆ flusher_pool_t

A sequential trait for executing work from which we do not need to get the results.

For compatibility with the multi-threaded version.

Definition at line 67 of file cache.hpp.

◆ mapped_type

template<typename Key , typename Val , class Comp = std::less<Key>, class Alloc = std::allocator<Val>>
typedef assoc_colln_t::value_type::second_type jmmcg::LIBJMMCG_VER_NAMESPACE::cache::threading< Key, Val, Comp, Alloc >::single< API >::mapped_type

Definition at line 52 of file cache.hpp.

◆ populate_pool_t

A sequential trait for executing work from which we want to get the results.

For compatibility with the multi-threaded version.

Definition at line 82 of file cache.hpp.


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