14#include "arcane/utils/ArcanePrecomp.h"
15#include "arcane/utils/AMRCallBackMng.h"
28void AMRCallBackMng::initialize()
33void AMRCallBackMng::finalize()
35 m_amr_transport_functors.clear();
39void AMRCallBackMng::registerCallBack(IAMRTransportFunctor * f)
41 m_amr_transport_functors.add(f);
45void AMRCallBackMng::unregisterCallBack(IAMRTransportFunctor * f)
47 m_amr_transport_functors.remove(f);
50void AMRCallBackMng::callCallBacks(Array<ItemInternal*>& old, AMROperationType op)
52 IAMRTransportFunctorList::const_iterator ib(m_amr_transport_functors.begin()), ie(m_amr_transport_functors.end());
53 for (; ib != ie; ib++) {
54 (*ib)->executeFunctor(old,op);
58void AMRCallBackMng::callCallBacks(Array<Cell>& old, AMROperationType op)
60 IAMRTransportFunctorList::const_iterator ib(m_amr_transport_functors.begin()), ie(m_amr_transport_functors.end());
61 for (; ib != ie; ib++) {
62 (*ib)->executeFunctor(old,op);