Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::FunctorT< T > 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::FunctorT< T >:
Collaboration diagram for Arcane::FunctorT< T >:

Public Types

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

Public Member Functions

 FunctorT (T *object, FuncPtr funcptr)
 Constructor.
Public Member Functions inherited from Arcane::IFunctor
virtual ~IFunctor ()
 Releases resources.

Protected Member Functions

void executeFunctor () override
 Executes the associated method.

Private Attributes

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

Detailed Description

template<typename T>
class Arcane::FunctorT< T >

Functor associated with a method of a class T.

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

Member Typedef Documentation

◆ FuncPtr

template<typename T>
typedef void(T::* Arcane::FunctorT< T >::FuncPtr) ()

Type of the method pointer.

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

Constructor & Destructor Documentation

◆ FunctorT()

template<typename T>
Arcane::FunctorT< T >::FunctorT ( T * object,
FuncPtr funcptr )
inline

Constructor.

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

References m_function, and m_object.

◆ ~FunctorT()

template<typename T>
Arcane::FunctorT< T >::~FunctorT ( )
inlineoverride

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

Member Function Documentation

◆ executeFunctor()

template<typename T>
void Arcane::FunctorT< T >::executeFunctor ( )
inlineoverrideprotectedvirtual

Executes the associated method.

Implements Arcane::IFunctor.

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

References m_function, and m_object.

Member Data Documentation

◆ m_function

template<typename T>
FuncPtr Arcane::FunctorT< T >::m_function
private

Pointer to the associated method.

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

Referenced by executeFunctor(), and FunctorT().

◆ m_object

template<typename T>
T* Arcane::FunctorT< T >::m_object
private

Associated object.

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

Referenced by executeFunctor(), and FunctorT().


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