Stride Reference Manual  1.0
unipar::internal::_OpenmpParallel Class Reference

#include <openmp.h>

Inheritance diagram for unipar::internal::_OpenmpParallel:
Inheritance graph
Collaboration diagram for unipar::internal::_OpenmpParallel:
Collaboration graph

Public Types

template<typename Impl , typename... Types>
using RMType = OpenmpResourceManager< Impl, Types... >
 

Public Member Functions

 _OpenmpParallel ()
 
 _OpenmpParallel (int nthreads)
 
template<typename RM >
void init (RM &rm)
 
template<typename IndexF , typename IndexL , typename IndexS , typename Func , typename RM >
void parallelFor (IndexF first, IndexL last, IndexS step, const Func &f, RM &rm)
 
int getNumThreads () const
 
void setNumThreads (int nthreads)
 
- Public Member Functions inherited from unipar::internal::ParallelInterface
 ParallelInterface (int)
 
 ParallelInterface ()
 
template<typename RM >
void init (RM &rm)
 
int getNumThreads () const
 
void setNumThreads (int nthreads)
 
template<typename IndexF , typename IndexL , typename IndexS , typename Func , typename RM >
void parallelFor (IndexF first, IndexL last, IndexS step, const Func &f, RM &rm)
 

Private Attributes

int m_nthreads
 

Detailed Description

Definition at line 56 of file openmp.h.

Member Typedef Documentation

template<typename Impl , typename... Types>
using unipar::internal::_OpenmpParallel::RMType = OpenmpResourceManager<Impl, Types...>

Definition at line 59 of file openmp.h.

Constructor & Destructor Documentation

unipar::internal::_OpenmpParallel::_OpenmpParallel ( )
inline

Definition at line 61 of file openmp.h.

unipar::internal::_OpenmpParallel::_OpenmpParallel ( int  nthreads)
inline

Definition at line 68 of file openmp.h.

Member Function Documentation

template<typename RM >
void unipar::internal::_OpenmpParallel::init ( RM &  rm)
inline

Definition at line 71 of file openmp.h.

template<typename IndexF , typename IndexL , typename IndexS , typename Func , typename RM >
void unipar::internal::_OpenmpParallel::parallelFor ( IndexF  first,
IndexL  last,
IndexS  step,
const Func &  f,
RM &  rm 
)
inline

Definition at line 76 of file openmp.h.

int unipar::internal::_OpenmpParallel::getNumThreads ( ) const
inline

Definition at line 83 of file openmp.h.

void unipar::internal::_OpenmpParallel::setNumThreads ( int  nthreads)
inline

Definition at line 85 of file openmp.h.

Member Data Documentation

int unipar::internal::_OpenmpParallel::m_nthreads
private

Definition at line 88 of file openmp.h.


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