Functor associated with a method of a class T. More...
#include <arcane/utils/AMRTransportFunctor.h>
Public Types | |
| typedef void(ClassType::* | FuncPtr) (Array< ItemInternal * > &, AMROperationType) |
| Type of the method pointer. | |
| typedef void(ClassType::* | FuncPtr2) (Array< Cell > &, AMROperationType) |
| Type of the method pointer. | |
Public Member Functions | |
| AMRTransportFunctorT (ClassType *object, FuncPtr funcptr) | |
| Constructor. | |
| AMRTransportFunctorT (ClassType *object, FuncPtr2 funcptr2) | |
| Public Member Functions inherited from Arcane::IAMRTransportFunctor | |
| virtual | ~IAMRTransportFunctor () |
| Frees resources. | |
Protected Member Functions | |
| void | executeFunctor (Array< ItemInternal * > &old_cells, AMROperationType op) |
| Executes the associated method. | |
| void | executeFunctor (Array< Cell > &old_cells, AMROperationType op) |
| Executes the associated method. | |
Private Attributes | |
| ClassType * | m_object = nullptr |
| Associated object. | |
| FuncPtr | m_function = nullptr |
| Pointer to the associated method. | |
| FuncPtr2 | m_function2 = nullptr |
| Pointer to the associated method. | |
Functor associated with a method of a class T.
Definition at line 33 of file AMRTransportFunctor.h.
| typedef void(ClassType::* Arcane::AMRTransportFunctorT< ClassType >::FuncPtr) (Array< ItemInternal * > &, AMROperationType) |
Type of the method pointer.
Definition at line 38 of file AMRTransportFunctor.h.
| typedef void(ClassType::* Arcane::AMRTransportFunctorT< ClassType >::FuncPtr2) (Array< Cell > &, AMROperationType) |
Type of the method pointer.
Definition at line 39 of file AMRTransportFunctor.h.
|
inline |
Constructor.
Definition at line 43 of file AMRTransportFunctor.h.
References m_function, and m_object.
|
inline |
Definition at line 48 of file AMRTransportFunctor.h.
|
inlineprotectedvirtual |
Executes the associated method.
Implements Arcane::IAMRTransportFunctor.
Definition at line 61 of file AMRTransportFunctor.h.
References m_function2, and m_object.
|
inlineprotectedvirtual |
Executes the associated method.
Implements Arcane::IAMRTransportFunctor.
Definition at line 56 of file AMRTransportFunctor.h.
References m_function, and m_object.
|
private |
Pointer to the associated method.
Definition at line 69 of file AMRTransportFunctor.h.
Referenced by AMRTransportFunctorT(), and executeFunctor().
|
private |
Pointer to the associated method.
Definition at line 70 of file AMRTransportFunctor.h.
Referenced by executeFunctor().
|
private |
Associated object.
Definition at line 68 of file AMRTransportFunctor.h.
Referenced by AMRTransportFunctorT(), executeFunctor(), and executeFunctor().