Arcane
4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
AMRCallBackMng.h
1
// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2
//-----------------------------------------------------------------------------
3
// Copyright 2000-2026 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4
// See the top-level COPYRIGHT file for details.
5
// SPDX-License-Identifier: Apache-2.0
6
//-----------------------------------------------------------------------------
7
/*---------------------------------------------------------------------------*/
8
/* CallBackDefinition.h (C) 2000-2010 */
9
/* */
10
/* Callback function manager. */
11
/*---------------------------------------------------------------------------*/
12
#ifndef ARCANE_UTILS_AMRCALLBACKMNG_H
13
#define ARCANE_UTILS_AMRCALLBACKMNG_H
14
/*---------------------------------------------------------------------------*/
15
/*---------------------------------------------------------------------------*/
16
17
#include "arcane/utils/VersionInfo.h"
18
#include "
arcane/utils/UtilsTypes.h
"
19
#include "arcane/utils/List.h"
20
#include "arcane/utils/AMRComputeFunction.h"
21
22
/*---------------------------------------------------------------------------*/
23
/*---------------------------------------------------------------------------*/
24
25
namespace
Arcane
26
{
27
28
/*---------------------------------------------------------------------------*/
29
/*---------------------------------------------------------------------------*/
30
31
class
ARCANE_UTILS_EXPORT AMRCallBackMng
32
{
33
typedef
List<IAMRTransportFunctor*>
IAMRTransportFunctorList;
34
35
public
:
36
37
AMRCallBackMng() {};
38
~AMRCallBackMng() {};
39
40
public
:
41
42
void
initialize();
43
void
finalize();
44
45
void
registerCallBack(
IAMRTransportFunctor
*);
46
47
void
unregisterCallBack(
IAMRTransportFunctor
*);
48
49
void
callCallBacks(
Array<ItemInternal*>
& old, AMROperationType op);
50
51
void
callCallBacks(
Array<Cell>
& old, AMROperationType op);
52
53
private
:
54
55
IAMRTransportFunctorList m_amr_transport_functors;
56
};
57
58
/*---------------------------------------------------------------------------*/
59
/*---------------------------------------------------------------------------*/
60
61
}
// namespace Arcane
62
63
/*---------------------------------------------------------------------------*/
64
/*---------------------------------------------------------------------------*/
65
66
#endif
UtilsTypes.h
Declarations of types used in Arcane.
Arcane::Array
Base class for 1D data vectors.
Definition
arccore/src/common/arccore/common/Array.h:44
Arcane::IAMRTransportFunctor
Interface of a functor with argument.
Definition
IAMRTransportFunctor.h:44
Arcane::List
Implementation of a collection of elements in vector form.
Definition
arccore/src/common/arccore/common/List.h:631
Arcane
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Definition
arcane/src/arcane/accelerator/AcceleratorGlobal.h:37
arcane
utils
AMRCallBackMng.h
Generated on
for Arcane by
1.16.1