Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::LambdaItemRangeFunctorT< LambdaType > Class Template Reference

Functor on an iteration interval instantiated via a lambda function. More...

#include <arcane/core/ItemFunctor.h>

Inheritance diagram for Arcane::LambdaItemRangeFunctorT< LambdaType >:
Collaboration diagram for Arcane::LambdaItemRangeFunctorT< LambdaType >:

Public Member Functions

 LambdaItemRangeFunctorT (ItemVectorView items_view, const LambdaType &lambda_function, Int32 grain_size=DEFAULT_GRAIN_SIZE)
void executeFunctor (Int32 begin, Int32 size) override
 Executes the associated method.
Public Member Functions inherited from Arcane::AbstractItemRangeFunctor
 AbstractItemRangeFunctor (ItemVectorView items_view, Int32 grain_size)
Int32 nbBlock () const
 Number of blocks.
Int32 blockGrainSize () const
 Desired size of an iteration interval.
Public Member Functions inherited from Arcane::IRangeFunctor
virtual ~IRangeFunctor ()=default
 Releases resources.

Private Attributes

const LambdaType & m_lambda_function

Additional Inherited Members

Static Public Attributes inherited from Arcane::AbstractItemRangeFunctor
static const Integer DEFAULT_GRAIN_SIZE = 400
Protected Member Functions inherited from Arcane::AbstractItemRangeFunctor
ItemVectorView _view (Int32 begin_block, Int32 nb_block, Int32 *true_begin=nullptr) const
Protected Attributes inherited from Arcane::AbstractItemRangeFunctor
ItemVectorView m_items
Int32 m_block_size = 0
Int32 m_nb_block = 0
Int32 m_block_grain_size = 0

Detailed Description

template<typename LambdaType>
class Arcane::LambdaItemRangeFunctorT< LambdaType >

Functor on an iteration interval instantiated via a lambda function.

This class is used with the C++1x lambda function mechanism.

Definition at line 122 of file ItemFunctor.h.

Constructor & Destructor Documentation

◆ LambdaItemRangeFunctorT()

template<typename LambdaType>
Arcane::LambdaItemRangeFunctorT< LambdaType >::LambdaItemRangeFunctorT ( ItemVectorView items_view,
const LambdaType & lambda_function,
Int32 grain_size = DEFAULT_GRAIN_SIZE )
inline

Definition at line 127 of file ItemFunctor.h.

Member Function Documentation

◆ executeFunctor()

template<typename LambdaType>
void Arcane::LambdaItemRangeFunctorT< LambdaType >::executeFunctor ( Int32 begin,
Int32 size )
inlineoverridevirtual

Executes the associated method.

Parameters
beginindex of the start of the iteration.
sizenumber of elements to iterate.

Implements Arcane::IRangeFunctor.

Definition at line 136 of file ItemFunctor.h.

Member Data Documentation

◆ m_lambda_function

template<typename LambdaType>
const LambdaType& Arcane::LambdaItemRangeFunctorT< LambdaType >::m_lambda_function
private

Definition at line 152 of file ItemFunctor.h.


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