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

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

#include <arcane/utils/AMRTransportFunctor.h>

Inheritance diagram for Arcane::AMRTransportFunctorT< ClassType >:
Collaboration diagram for Arcane::AMRTransportFunctorT< ClassType >:

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.

Detailed Description

template<typename ClassType>
class Arcane::AMRTransportFunctorT< ClassType >

Functor associated with a method of a class T.

Definition at line 33 of file AMRTransportFunctor.h.

Member Typedef Documentation

◆ FuncPtr

template<typename ClassType>
typedef void(ClassType::* Arcane::AMRTransportFunctorT< ClassType >::FuncPtr) (Array< ItemInternal * > &, AMROperationType)

Type of the method pointer.

Definition at line 38 of file AMRTransportFunctor.h.

◆ FuncPtr2

template<typename ClassType>
typedef void(ClassType::* Arcane::AMRTransportFunctorT< ClassType >::FuncPtr2) (Array< Cell > &, AMROperationType)

Type of the method pointer.

Definition at line 39 of file AMRTransportFunctor.h.

Constructor & Destructor Documentation

◆ AMRTransportFunctorT() [1/2]

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

Constructor.

Definition at line 43 of file AMRTransportFunctor.h.

References m_function, and m_object.

◆ AMRTransportFunctorT() [2/2]

template<typename ClassType>
Arcane::AMRTransportFunctorT< ClassType >::AMRTransportFunctorT ( ClassType * object,
FuncPtr2 funcptr2 )
inline

Definition at line 48 of file AMRTransportFunctor.h.

Member Function Documentation

◆ executeFunctor() [1/2]

template<typename ClassType>
void Arcane::AMRTransportFunctorT< ClassType >::executeFunctor ( Array< Cell > & old_cells,
AMROperationType op )
inlineprotectedvirtual

Executes the associated method.

Implements Arcane::IAMRTransportFunctor.

Definition at line 61 of file AMRTransportFunctor.h.

References m_function2, and m_object.

◆ executeFunctor() [2/2]

template<typename ClassType>
void Arcane::AMRTransportFunctorT< ClassType >::executeFunctor ( Array< ItemInternal * > & old_cells,
AMROperationType op )
inlineprotectedvirtual

Executes the associated method.

Implements Arcane::IAMRTransportFunctor.

Definition at line 56 of file AMRTransportFunctor.h.

References m_function, and m_object.

Member Data Documentation

◆ m_function

template<typename ClassType>
FuncPtr Arcane::AMRTransportFunctorT< ClassType >::m_function = nullptr
private

Pointer to the associated method.

Definition at line 69 of file AMRTransportFunctor.h.

Referenced by AMRTransportFunctorT(), and executeFunctor().

◆ m_function2

template<typename ClassType>
FuncPtr2 Arcane::AMRTransportFunctorT< ClassType >::m_function2 = nullptr
private

Pointer to the associated method.

Definition at line 70 of file AMRTransportFunctor.h.

Referenced by executeFunctor().

◆ m_object

template<typename ClassType>
ClassType* Arcane::AMRTransportFunctorT< ClassType >::m_object = nullptr
private

Associated object.

Definition at line 68 of file AMRTransportFunctor.h.

Referenced by AMRTransportFunctorT(), executeFunctor(), and executeFunctor().


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