Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::StdFunctorWithArgumentT< ArgType > Class Template Reference

Generic Functor using the std::function class. More...

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

Inheritance diagram for Arcane::StdFunctorWithArgumentT< ArgType >:
Collaboration diagram for Arcane::StdFunctorWithArgumentT< ArgType >:

Public Member Functions

 StdFunctorWithArgumentT (const std::function< void(ArgType)> &function)
 Constructor.
Public Member Functions inherited from Arcane::IFunctorWithArgumentT< ArgType >
virtual ~IFunctorWithArgumentT ()
 Releases resources.

Protected Member Functions

void executeFunctor (ArgType arg)
 Executes the associated method.
Protected Member Functions inherited from Arcane::IFunctorWithArgumentT< ArgType >
 IFunctorWithArgumentT (const IFunctorWithArgumentT< ArgType > &rhs)=default
IFunctorWithArgumentT< ArgType > & operator= (const IFunctorWithArgumentT< ArgType > &rhs)=default

Private Attributes

std::function< void(ArgType)> m_function

Detailed Description

template<typename ArgType>
class Arcane::StdFunctorWithArgumentT< ArgType >

Generic Functor using the std::function class.

Definition at line 111 of file arccore/src/base/arccore/base/Functor.h.

Constructor & Destructor Documentation

◆ StdFunctorWithArgumentT()

template<typename ArgType>
Arcane::StdFunctorWithArgumentT< ArgType >::StdFunctorWithArgumentT ( const std::function< void(ArgType)> & function)
inline

Constructor.

Definition at line 117 of file arccore/src/base/arccore/base/Functor.h.

Member Function Documentation

◆ executeFunctor()

template<typename ArgType>
void Arcane::StdFunctorWithArgumentT< ArgType >::executeFunctor ( ArgType arg)
inlineprotectedvirtual

Executes the associated method.

Implements Arcane::IFunctorWithArgumentT< ArgType >.

Definition at line 125 of file arccore/src/base/arccore/base/Functor.h.

Member Data Documentation

◆ m_function

template<typename ArgType>
std::function<void(ArgType)> Arcane::StdFunctorWithArgumentT< ArgType >::m_function
private

Definition at line 132 of file arccore/src/base/arccore/base/Functor.h.


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