MCKL
Monte Carlo Kernel Library
Public Types | Public Member Functions | List of all members
mckl::RNGSetTBBEnumerable< RNGType, Alloc, ETSKeyType > Class Template Reference

Thread-local storage RNG set using tbb::enumerable_thread_specific. More...

#include <mckl/random/rng_set.hpp>

Public Types

using rng_type = RNGType
 
using size_type = std::size_t
 

Public Member Functions

 RNGSetTBBEnumerable (size_type=0)
 
rng_typeoperator[] (size_type)
 
void reset ()
 
void resize (std::size_t)
 
size_type size () const
 

Detailed Description

template<typename RNGType = RNG, typename Alloc = ::tbb::cache_aligned_allocator<RNGType>, ::tbb::ets_key_usage_type ETSKeyType = ::tbb::ets_no_key>
class mckl::RNGSetTBBEnumerable< RNGType, Alloc, ETSKeyType >

Thread-local storage RNG set using tbb::enumerable_thread_specific.

Definition at line 129 of file rng_set.hpp.

Member Typedef Documentation

◆ rng_type

template<typename RNGType = RNG, typename Alloc = ::tbb::cache_aligned_allocator<RNGType>, ::tbb::ets_key_usage_type ETSKeyType = ::tbb::ets_no_key>
using mckl::RNGSetTBBEnumerable< RNGType, Alloc, ETSKeyType >::rng_type = RNGType

Definition at line 132 of file rng_set.hpp.

◆ size_type

template<typename RNGType = RNG, typename Alloc = ::tbb::cache_aligned_allocator<RNGType>, ::tbb::ets_key_usage_type ETSKeyType = ::tbb::ets_no_key>
using mckl::RNGSetTBBEnumerable< RNGType, Alloc, ETSKeyType >::size_type = std::size_t

Definition at line 133 of file rng_set.hpp.

Constructor & Destructor Documentation

◆ RNGSetTBBEnumerable()

template<typename RNGType = RNG, typename Alloc = ::tbb::cache_aligned_allocator<RNGType>, ::tbb::ets_key_usage_type ETSKeyType = ::tbb::ets_no_key>
mckl::RNGSetTBBEnumerable< RNGType, Alloc, ETSKeyType >::RNGSetTBBEnumerable ( size_type  = 0)
inlineexplicit

Definition at line 135 of file rng_set.hpp.

Member Function Documentation

◆ operator[]()

template<typename RNGType = RNG, typename Alloc = ::tbb::cache_aligned_allocator<RNGType>, ::tbb::ets_key_usage_type ETSKeyType = ::tbb::ets_no_key>
rng_type& mckl::RNGSetTBBEnumerable< RNGType, Alloc, ETSKeyType >::operator[] ( size_type  )
inline

Definition at line 147 of file rng_set.hpp.

◆ reset()

template<typename RNGType = RNG, typename Alloc = ::tbb::cache_aligned_allocator<RNGType>, ::tbb::ets_key_usage_type ETSKeyType = ::tbb::ets_no_key>
void mckl::RNGSetTBBEnumerable< RNGType, Alloc, ETSKeyType >::reset ( )
inline

Definition at line 145 of file rng_set.hpp.

◆ resize()

template<typename RNGType = RNG, typename Alloc = ::tbb::cache_aligned_allocator<RNGType>, ::tbb::ets_key_usage_type ETSKeyType = ::tbb::ets_no_key>
void mckl::RNGSetTBBEnumerable< RNGType, Alloc, ETSKeyType >::resize ( std::size_t  )
inline

Definition at line 143 of file rng_set.hpp.

◆ size()

template<typename RNGType = RNG, typename Alloc = ::tbb::cache_aligned_allocator<RNGType>, ::tbb::ets_key_usage_type ETSKeyType = ::tbb::ets_no_key>
size_type mckl::RNGSetTBBEnumerable< RNGType, Alloc, ETSKeyType >::size ( ) const
inline

Definition at line 141 of file rng_set.hpp.