Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::ItemRangeFunctorT< InstanceType, ItemType > Class Template Reference

Functor for iterating over a list of entities. More...

#include <arcane/core/ItemFunctor.h>

Inheritance diagram for Arcane::ItemRangeFunctorT< InstanceType, ItemType >:
Collaboration diagram for Arcane::ItemRangeFunctorT< InstanceType, ItemType >:

Public Member Functions

 ItemRangeFunctorT (ItemVectorView items_view, InstanceType *instance, FunctionType function, Integer grain_size=DEFAULT_GRAIN_SIZE)
virtual void executeFunctor (Int32 begin, Int32 size)
 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 Types

typedef void(InstanceType::* FunctionType) (ItemVectorViewT< ItemType >)

Private Attributes

InstanceType * m_instance
FunctionType m_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 InstanceType, typename ItemType>
class Arcane::ItemRangeFunctorT< InstanceType, ItemType >

Functor for iterating over a list of entities.

Definition at line 79 of file ItemFunctor.h.

Member Typedef Documentation

◆ FunctionType

template<typename InstanceType, typename ItemType>
typedef void(InstanceType::* Arcane::ItemRangeFunctorT< InstanceType, ItemType >::FunctionType) (ItemVectorViewT< ItemType >)
private

Definition at line 84 of file ItemFunctor.h.

Constructor & Destructor Documentation

◆ ItemRangeFunctorT()

template<typename InstanceType, typename ItemType>
Arcane::ItemRangeFunctorT< InstanceType, ItemType >::ItemRangeFunctorT ( ItemVectorView items_view,
InstanceType * instance,
FunctionType function,
Integer grain_size = DEFAULT_GRAIN_SIZE )
inline

Definition at line 88 of file ItemFunctor.h.

Member Function Documentation

◆ executeFunctor()

template<typename InstanceType, typename ItemType>
virtual void Arcane::ItemRangeFunctorT< InstanceType, ItemType >::executeFunctor ( Int32 begin,
Int32 size )
inlinevirtual

Executes the associated method.

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

Implements Arcane::IRangeFunctor.

Definition at line 103 of file ItemFunctor.h.

Member Data Documentation

◆ m_function

template<typename InstanceType, typename ItemType>
FunctionType Arcane::ItemRangeFunctorT< InstanceType, ItemType >::m_function
private

Definition at line 99 of file ItemFunctor.h.

◆ m_instance

template<typename InstanceType, typename ItemType>
InstanceType* Arcane::ItemRangeFunctorT< InstanceType, ItemType >::m_instance
private

Definition at line 98 of file ItemFunctor.h.


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