14#include "arcane/core/internal/MshMeshGenerationInfo.h"
16#include "arcane/utils/IUserDataList.h"
17#include "arcane/utils/AutoDestroyUserData.h"
18#include "arcane/utils/FatalErrorException.h"
20#include "arcane/core/IMesh.h"
31MshMeshGenerationInfo::
32MshMeshGenerationInfo(IMesh* mesh)
40MshMeshGenerationInfo* MshMeshGenerationInfo::
41getReference(IMesh* mesh,
bool create)
43 const char* name =
"MshMeshGenerationInfo";
44 IUserDataList* udlist = mesh->userDataList();
46 IUserData* ud = udlist->data(name,
true);
50 auto* cm =
new MshMeshGenerationInfo(mesh);
51 udlist->setData(name,
new AutoDestroyUserData<MshMeshGenerationInfo>(cm));
54 auto* adud =
dynamic_cast<AutoDestroyUserData<MshMeshGenerationInfo>*
>(ud);
#define ARCANE_FATAL(...)
Macro envoyant une exception FatalErrorException.