Stride Reference Manual  1.0
unipar::internal::TbbResourceManager< Impl, Type, Rest... > Class Template Reference

#include <tbb.h>

Inheritance diagram for unipar::internal::TbbResourceManager< Impl, Type, Rest... >:
Inheritance graph
Collaboration diagram for unipar::internal::TbbResourceManager< Impl, Type, Rest... >:
Collaboration graph

Public Types

using RestType = typename Impl::template RMType< Impl, Rest... >
 
using FuncType = std::function< Type()>
 
using TLSType = tbb::enumerable_thread_specific< Type >
 
- Public Types inherited from unipar::internal::ResourceManager< Impl, Type, Rest... >
using RestType = typename Impl::template RMType< Impl, Rest... >
 
using FuncType = std::function< Type()>
 

Public Member Functions

template<typename F , typename... Args>
std::result_of< F(Type &, Args...)>::type call (const F &func, Args &&...args)
 
void setFunc (const FuncType &f)
 
- Public Member Functions inherited from unipar::internal::ResourceManager< Impl, Type, Rest... >
 ResourceManager ()=default
 
 ResourceManager (const RestType &rest)
 
 ResourceManager (const ResourceManager< Impl, Type, Rest... > &rm)
 
ResourceManager< Impl, Type, Rest... > & operator= (const ResourceManager< Impl, Type, Rest... > &other)
 
void setFunc (const FuncType &f)
 
RestTyperest ()
 
const RestTyperest () const
 

Protected Attributes

std::unique_ptr< TLSTypem_tls
 
- Protected Attributes inherited from unipar::internal::ResourceManager< Impl, Type, Rest... >
FuncType m_func
 
RestType m_rest
 

Detailed Description

template<typename Impl, typename Type, typename... Rest>
class unipar::internal::TbbResourceManager< Impl, Type, Rest... >

Definition at line 20 of file tbb.h.

Member Typedef Documentation

template<typename Impl , typename Type , typename... Rest>
using unipar::internal::TbbResourceManager< Impl, Type, Rest... >::RestType = typename Impl::template RMType<Impl, Rest...>

Definition at line 22 of file tbb.h.

template<typename Impl , typename Type , typename... Rest>
using unipar::internal::TbbResourceManager< Impl, Type, Rest... >::FuncType = std::function<Type()>

Definition at line 23 of file tbb.h.

template<typename Impl , typename Type , typename... Rest>
using unipar::internal::TbbResourceManager< Impl, Type, Rest... >::TLSType = tbb::enumerable_thread_specific<Type>

Definition at line 24 of file tbb.h.

Member Function Documentation

template<typename Impl , typename Type , typename... Rest>
template<typename F , typename... Args>
std::result_of<F(Type&, Args...)>::type unipar::internal::TbbResourceManager< Impl, Type, Rest... >::call ( const F &  func,
Args &&...  args 
)
inline

Definition at line 29 of file tbb.h.

template<typename Impl , typename Type , typename... Rest>
void unipar::internal::TbbResourceManager< Impl, Type, Rest... >::setFunc ( const FuncType f)
inline

Definition at line 33 of file tbb.h.

Member Data Documentation

template<typename Impl , typename Type , typename... Rest>
std::unique_ptr<TLSType> unipar::internal::TbbResourceManager< Impl, Type, Rest... >::m_tls
protected

Definition at line 39 of file tbb.h.


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