ParallelFor::NoBreakContext Class Reference
Inheritance diagram for ParallelFor::NoBreakContext:

Detailed Description

Context for lambdas which don't expect a context pointer as argument and return Result<void>.

Public Types

using ResultValueType = Result< void >
 
- Public Types inherited from ParallelFor::BreakContext
using ResultValueType = Result< void >
 
- Public Types inherited from ParallelFor::BaseContext
using ResultValueType = void
 

Public Member Functions

template<typename FN , typename CONTEXT , typename INDEXTYPE >
void Invoke (FN &obj, INDEXTYPE i)
 
- Public Member Functions inherited from ParallelFor::BreakContext
void Break (Result< void > result=OK)
 
Bool IsCancelled () const
 
- Public Member Functions inherited from ParallelFor::BaseContext
 BaseContext ()
 
template<typename INDEXTYPE >
void PrivateInit (INDEXTYPE from, INDEXTYPE to, Int threadIndex, BreakCondition *breakCondition)
 
template<typename FN , typename CONTEXT , typename INDEXTYPE >
void Invoke (FN &obj, INDEXTYPE i)
 
Bool IsCancelled () const
 
Int GetWorkerThreadIndex () const
 
void UpdateWorkerThreadIndex (Int threadIndex=JobRef::GetCurrentWorkerThreadIndex())
 
Int GetLocalThreadIndex () const
 
void Break (Result< void > result=OK)
 

Static Public Member Functions

static ResultValueType Return (Result< void > &&r)
 
- Static Public Member Functions inherited from ParallelFor::BreakContext
static ResultValueType Return (Result< void > &&r)
 
- Static Public Member Functions inherited from ParallelFor::BaseContext
static ResultValueType Return (Result< void > &&r)
 

Additional Inherited Members

- Public Attributes inherited from ParallelFor::BaseContext
Int _from
 
Int _to
 
Int _workerThreadIndex
 
Int _localContextIndex
 
Result< void > _result
 
BreakCondition_breakCondition
 

Member Typedef Documentation

◆ ResultValueType

using ResultValueType = Result<void>

Member Function Documentation

◆ Invoke()

void Invoke ( FN &  obj,
INDEXTYPE  i 
)

Invokes the loop body object.

Parameters
[in]objReference to loop body object.
[in]iIndex.
Template Parameters
FNA class containing an operator ()(INDEXTYPE) used for the loop.
CONTEXTType of context super class.
INDEXTYPEAn integral type used for the index of the loop.

◆ Return()

static ResultValueType Return ( Result< void > &&  r)
static