12#ifndef ARCANE_MESH_ONEITEMADDER_H
13#define ARCANE_MESH_ONEITEMADDER_H
17#include "arcane/utils/TraceAccessor.h"
19#include "arcane/core/Item.h"
20#include "arcane/core/NodesOfItemReorderer.h"
22#include "arcane/mesh/MeshGlobal.h"
23#include "arcane/mesh/FullItemInfo.h"
24#include "arcane/mesh/CellFamily.h"
25#include "arcane/mesh/NodeFamily.h"
26#include "arcane/mesh/FaceFamily.h"
27#include "arcane/mesh/EdgeFamily.h"
28#include "arcane/mesh/MeshInfos.h"
57 ~OneMeshItemAdder() {}
76 bool allow_build_face);
80 const bool fatal_on_existing_item =
true);
85 ARCANE_DEPRECATED_REASON(
"Y2022: Use addOneItem2() instead")
127 template <
typename CellInfo>
130 template <
typename CellInfo>
133 template <
typename CellInfo>
134 bool _isReorder(
Integer i_face,
136 const CellInfo& cell_info);
138 template <
typename CellInfo>
140 const CellInfo& cell_info,
143 template <
typename CellInfo>
145 const CellInfo& cell_info,
149 template <
typename CellInfo>
150 void _AMR_Patch(
Cell cell,
const CellInfo& cell_info);
Constant view of an array of type T.
Interface for managing an incremental connectivity.
Interface for modifying a family.
Interface of an entity family.
Internal structure of a mesh entity.
Index of an Item in a variable.
Type of an entity (Item).
Local information about a cell face.
Mesh entity type manager.
Mesh element based on nodes (Edge,Face,Cell).
Base class for a mesh element.
Utility class to reorder the nodes of an entity.
TraceAccessor(ITraceMng *m)
Constructs an accessor via the trace manager m.
1D data vector with value semantics (STL style).
Construction of a mesh incrementally.
Implementation of a mesh.
Info to create/serialize a cell knowing the uniqueId() and owner() of all these sub-entities (cells,...
Class containing mesh information.
void _checkSameItemCoherency(ItemWithNodes item, ConstArrayView< Int64 > nodes_uid)
Checks the coherence of nodes for an already added item.
void _addNodesToCell(Cell cell, const CellInfo &cell_info)
Adds the nodes nodes_uid to the cell cell.
NodesOfItemReorderer m_face_reorderer
Work arrays.
ItemInternal * _addOneCell(const CellInfo &cell_info)
Adds a cell.
ItemInternal * addOneCell(ItemTypeId type_id, Int64 cell_uid, Int32 sub_domain_id, Int64ConstArrayView nodes_uid, bool allow_build_face)
Adds a cell.
MeshInfos m_mesh_info
General information about the mesh (sub-domain number, number of items...).
Int64 _checkGenerateFaceUniqueId(Int64 uid, ConstArrayView< Int64 > nodes_uid)
Generates a uniqueId() for the face if uid is null.
Int64 m_next_edge_uid
Next uniqueId() number used for generating edges.
void setUseNodeUniqueIdToGenerateEdgeAndFaceUniqueId(bool v)
Positions the uniqueId() numbering mechanism.
void resetAfterDeallocate()
Resets the structures to allow for re-allocation.
bool m_use_hash_for_edge_and_face_unique_id
If true, generates face uniqueIds from node uniqueIds.
Int64 m_next_face_uid
Next uniqueId() number used for generating faces.
ItemInternal * addOneParentItem(const Item &item, const eItemKind submesh_kind, const bool fatal_on_existing_item=true)
Adds a parent item.
ItemInternal * addOneFace(ItemTypeId type_id, Int64 face_uid, Int32 owner_rank, Int64ConstArrayView nodes_uid)
Adds a face.
std::int64_t Int64
Signed integer type of 64 bits.
Int32 Integer
Type representing an integer.
ConstArrayView< Int64 > Int64ConstArrayView
C equivalent of a 1D array of 64-bit integers.
eItemKind
Mesh entity type.
std::int32_t Int32
Signed integer type of 32 bits.