Functor associated with a method of a class T. More...
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. | |
Functor associated with a method of a class T.
Definition at line 74 of file arccore/src/base/arccore/base/Functor.h.
| 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.
|
inline |
Constructor.
Definition at line 84 of file arccore/src/base/arccore/base/Functor.h.
References m_function, and m_object.
|
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.
|
private |
Pointer to the associated method.
Definition at line 100 of file arccore/src/base/arccore/base/Functor.h.
Referenced by executeFunctor(), and FunctorWithArgumentT().
|
private |
Associated object.
Definition at line 99 of file arccore/src/base/arccore/base/Functor.h.
Referenced by executeFunctor(), and FunctorWithArgumentT().