10#ifndef ARCANE_MESH_NEWITEMOWNERBUILDER_H
11#define ARCANE_MESH_NEWITEMOWNERBUILDER_H
16#include "arcane/mesh/MeshGlobal.h"
18#include "arcane/Item.h"
28ARCANE_MESH_BEGIN_NAMESPACE
48class NewItemOwnerBuilder
52 NewItemOwnerBuilder() {}
56 inline Cell connectedCellOfItem(
const T& item)
const;
61 inline Integer ownerOfItem(
const T& item)
const
63 return connectedCellOfItem(item).owner();
72 inline Cell _minimumUniqueIdCellOfItem(
const T& item)
const
74 Cell cell = item.cell(0);
75 for(
Cell item_cell : item.cells() ){
76 if (item_cell.uniqueId() < cell.
uniqueId())
85inline Cell NewItemOwnerBuilder::connectedCellOfItem<Node>(
const Node& node)
const
87 return _minimumUniqueIdCellOfItem(node);
92inline Cell NewItemOwnerBuilder::connectedCellOfItem<Edge>(
const Edge& edge)
const
94 return _minimumUniqueIdCellOfItem(edge);
99inline Cell NewItemOwnerBuilder::connectedCellOfItem<Face>(
const Face& face)
const
101 Cell cell = face.backCell();
103 cell = face.frontCell();
107inline Cell NewItemOwnerBuilder::connectedCellOfItem<Particle>(
const Particle& particle)
const
109 return particle.cell();
116ARCANE_MESH_END_NAMESPACE
ItemUniqueId uniqueId() const
Identifiant unique sur tous les domaines.
Int32 Integer
Type représentant un entier.