libjmmcg  release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
add_thread< N, Cont, Ins > Struct Template Referencefinal

Inherits wrapper< platform_api, heavyweight_threading >, and wrapper< platform_api, heavyweight_threading >.

Public Types

typedef wrapper< platform_api, heavyweight_threading > base_t
 
typedef Cont container_type
 
typedef wrapper< platform_api, heavyweight_threading > base_t
 
typedef Cont container_type
 

Public Member Functions

 add_thread (const typename container_type::size_type n, Ins< container_type > const &c) noexcept(true)
 
 ~add_thread () noexcept(true)
 
bool worker_fn (typename base_t::thread_context_t &) override
 
 add_thread (const typename container_type::size_type n, Ins< container_type > const &c) noexcept(true)
 
 ~add_thread () noexcept(true)
 
bool worker_fn (typename base_t::thread_context_t &) override
 

Public Attributes

const container_type::size_type num_elems
 
std::vector< typename container_type::value_type > colln
 
Ins< container_typeinserting
 

Detailed Description

template<unsigned short N, class Cont, template< class > class Ins>
struct add_thread< N, Cont, Ins >

Definition at line 60 of file intrusive_parallel.cpp.

Member Typedef Documentation

◆ base_t [1/2]

template<unsigned short N, class Cont , template< class > class Ins>
typedef wrapper<platform_api, heavyweight_threading> add_thread< N, Cont, Ins >::base_t

Definition at line 61 of file intrusive_parallel.cpp.

◆ base_t [2/2]

template<unsigned short N, class Cont , template< class > class Ins>
typedef wrapper<platform_api, heavyweight_threading> add_thread< N, Cont, Ins >::base_t

Definition at line 61 of file intrusive_parallel.cpp.

◆ container_type [1/2]

template<unsigned short N, class Cont , template< class > class Ins>
typedef Cont add_thread< N, Cont, Ins >::container_type

Definition at line 62 of file intrusive_parallel.cpp.

◆ container_type [2/2]

template<unsigned short N, class Cont , template< class > class Ins>
typedef Cont add_thread< N, Cont, Ins >::container_type

Definition at line 62 of file intrusive_parallel.cpp.

Constructor & Destructor Documentation

◆ add_thread() [1/2]

template<unsigned short N, class Cont , template< class > class Ins>
add_thread< N, Cont, Ins >::add_thread ( const typename container_type::size_type  n,
Ins< container_type > const &  c 
)
inlinenoexcept

◆ ~add_thread() [1/2]

template<unsigned short N, class Cont , template< class > class Ins>
add_thread< N, Cont, Ins >::~add_thread ( )
inlinenoexcept

Definition at line 82 of file intrusive_parallel.cpp.

◆ add_thread() [2/2]

template<unsigned short N, class Cont , template< class > class Ins>
add_thread< N, Cont, Ins >::add_thread ( const typename container_type::size_type  n,
Ins< container_type > const &  c 
)
inlinenoexcept

Definition at line 69 of file intrusive_parallel.cpp.

◆ ~add_thread() [2/2]

template<unsigned short N, class Cont , template< class > class Ins>
add_thread< N, Cont, Ins >::~add_thread ( )
inlinenoexcept

Definition at line 82 of file intrusive_parallel.cpp.

Member Function Documentation

◆ worker_fn() [1/2]

template<unsigned short N, class Cont , template< class > class Ins>
bool add_thread< N, Cont, Ins >::worker_fn ( typename base_t::thread_context_t &  )
inlineoverride

Definition at line 86 of file intrusive_parallel.cpp.

◆ worker_fn() [2/2]

template<unsigned short N, class Cont , template< class > class Ins>
bool add_thread< N, Cont, Ins >::worker_fn ( typename base_t::thread_context_t &  )
inlineoverride

Definition at line 86 of file intrusive_parallel.cpp.

Member Data Documentation

◆ colln

template<unsigned short N, class Cont , template< class > class Ins>
std::vector< typename container_type::value_type > add_thread< N, Cont, Ins >::colln

Definition at line 66 of file intrusive_parallel.cpp.

◆ inserting

template<unsigned short N, class Cont , template< class > class Ins>
Ins< container_type > add_thread< N, Cont, Ins >::inserting

Definition at line 67 of file intrusive_parallel.cpp.

Referenced by add_thread< N, Cont, Ins >::add_thread().

◆ num_elems

template<unsigned short N, class Cont , template< class > class Ins>
const container_type::size_type add_thread< N, Cont, Ins >::num_elems

Definition at line 64 of file intrusive_parallel.cpp.

Referenced by add_thread< N, Cont, Ins >::add_thread().


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