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

Functor over an iteration interval. More...

#include </__w/arcaneframework.github.io/arcaneframework.github.io/framework/arccore/src/base/arccore/base/RangeFunctor.h>

Inheritance diagram for Arcane::RangeFunctorT< InstanceType >:
Collaboration diagram for Arcane::RangeFunctorT< InstanceType >:

Public Member Functions

 RangeFunctorT (InstanceType *instance, FunctionType function)
virtual void executeFunctor (Integer begin, Integer size)
 Executes the associated method.
Public Member Functions inherited from Arcane::IRangeFunctor
virtual ~IRangeFunctor ()=default
 Releases resources.

Private Types

typedef void(InstanceType::* FunctionType) (Integer i0, Integer size)

Private Attributes

InstanceType * m_instance
FunctionType m_function

Detailed Description

template<typename InstanceType>
class Arcane::RangeFunctorT< InstanceType >

Functor over an iteration interval.

Definition at line 34 of file arccore/src/base/arccore/base/RangeFunctor.h.

Member Typedef Documentation

◆ FunctionType

template<typename InstanceType>
typedef void(InstanceType::* Arcane::RangeFunctorT< InstanceType >::FunctionType) (Integer i0, Integer size)
private

Definition at line 39 of file arccore/src/base/arccore/base/RangeFunctor.h.

Constructor & Destructor Documentation

◆ RangeFunctorT()

template<typename InstanceType>
Arcane::RangeFunctorT< InstanceType >::RangeFunctorT ( InstanceType * instance,
FunctionType function )
inline

Definition at line 43 of file arccore/src/base/arccore/base/RangeFunctor.h.

Member Function Documentation

◆ executeFunctor()

template<typename InstanceType>
virtual void Arcane::RangeFunctorT< InstanceType >::executeFunctor ( Integer begin,
Integer 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 51 of file arccore/src/base/arccore/base/RangeFunctor.h.

Member Data Documentation

◆ m_function

template<typename InstanceType>
FunctionType Arcane::RangeFunctorT< InstanceType >::m_function
private

Definition at line 59 of file arccore/src/base/arccore/base/RangeFunctor.h.

◆ m_instance

template<typename InstanceType>
InstanceType* Arcane::RangeFunctorT< InstanceType >::m_instance
private

Definition at line 58 of file arccore/src/base/arccore/base/RangeFunctor.h.


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