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

Functor associated with a method of a class T. More...

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

Inheritance diagram for Arcane::FunctorWithArgumentT< ClassType, ArgType >:
Collaboration diagram for Arcane::FunctorWithArgumentT< ClassType, ArgType >:

Public Types

typedef void(ClassType::* FuncPtr) (ArgType)
 Type of the method pointer.

Public Member Functions

 FunctorWithArgumentT (ClassType *object, FuncPtr funcptr)
 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

ClassType * m_object
 Associated object.
FuncPtr m_function
 Pointer to the associated method.

Detailed Description

template<typename ClassType, typename ArgType>
class Arcane::FunctorWithArgumentT< ClassType, ArgType >

Functor associated with a method of a class T.

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

Member Typedef Documentation

◆ FuncPtr

template<typename ClassType, typename ArgType>
typedef void(ClassType::* Arcane::FunctorWithArgumentT< ClassType, ArgType >::FuncPtr) (ArgType)

Type of the method pointer.

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

Constructor & Destructor Documentation

◆ FunctorWithArgumentT()

template<typename ClassType, typename ArgType>
Arcane::FunctorWithArgumentT< ClassType, ArgType >::FunctorWithArgumentT ( ClassType * object,
FuncPtr funcptr )
inline

Constructor.

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

References m_function, and m_object.

Member Function Documentation

◆ executeFunctor()

template<typename ClassType, typename ArgType>
void Arcane::FunctorWithArgumentT< ClassType, ArgType >::executeFunctor ( ArgType arg)
inlineprotectedvirtual

Executes the associated method.

Implements Arcane::IFunctorWithArgumentT< ArgType >.

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

References m_function, and m_object.

Member Data Documentation

◆ m_function

template<typename ClassType, typename ArgType>
FuncPtr Arcane::FunctorWithArgumentT< ClassType, ArgType >::m_function
private

Pointer to the associated method.

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

Referenced by executeFunctor(), and FunctorWithArgumentT().

◆ m_object

template<typename ClassType, typename ArgType>
ClassType* Arcane::FunctorWithArgumentT< ClassType, ArgType >::m_object
private

Associated object.

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

Referenced by executeFunctor(), and FunctorWithArgumentT().


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