Ember
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Attributes | List of all members
TbbWrapper< T > Class Template Reference

Wrapper class for calling member functions in a tbb::parallel_for. More...

#include <tbb_tools.h>

Public Types

typedef void(T::* RangedFunc) (size_t x, size_t y)
 

Public Member Functions

 TbbWrapper (RangedFunc func_, T *parent_)
 Constructor.
 
void operator() (const tbb::blocked_range< size_t > &r) const
 Called internally by the TBB library.
 

Private Attributes

RangedFunc func
 
T & parent
 

Detailed Description

template<class T>
class TbbWrapper< T >

Wrapper class for calling member functions in a tbb::parallel_for.

Member Typedef Documentation

◆ RangedFunc

template<class T >
typedef void(T::* TbbWrapper< T >::RangedFunc) (size_t x, size_t y)

Constructor & Destructor Documentation

◆ TbbWrapper()

template<class T >
TbbWrapper< T >::TbbWrapper ( RangedFunc  func_,
T *  parent_ 
)
inline

Constructor.

Parameters
func_Pointer to a member function of class T that takes the half-open interval [x,y) and operates on that subset of the parallel_for's range.
parent_Pointer to the object whose member function will be called. Typically this.

Member Function Documentation

◆ operator()()

template<class T >
void TbbWrapper< T >::operator() ( const tbb::blocked_range< size_t > &  r) const
inline

Called internally by the TBB library.

Member Data Documentation

◆ func

template<class T >
RangedFunc TbbWrapper< T >::func
private

◆ parent

template<class T >
T& TbbWrapper< T >::parent
private

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