Arcane  v3.15.3.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
ItemTypeId.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2025 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/* ItemTypeId.h (C) 2000-2025 */
9/* */
10/* Type d'une entité. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_ITEMTYPEID_H
13#define ARCANE_CORE_ITEMTYPEID_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
31class ARCANE_CORE_EXPORT ItemTypeId
32{
33 public:
34
35 ItemTypeId() = default;
36 constexpr ARCCORE_HOST_DEVICE explicit ItemTypeId(Int16 id)
37 : m_type_id(id)
38 {}
39 constexpr ARCCORE_HOST_DEVICE operator Int16() const { return m_type_id; }
40
41 public:
42
43 constexpr ARCCORE_HOST_DEVICE Int16 typeId() const { return m_type_id; }
44 constexpr ARCCORE_HOST_DEVICE bool isNull() const { return m_type_id == IT_NullType; }
51 static ItemTypeId fromInteger(Int64 v);
52
53 private:
54
55 Int16 m_type_id = IT_NullType;
56};
57
58/*---------------------------------------------------------------------------*/
59/*---------------------------------------------------------------------------*/
60
62static constexpr ItemTypeId ITI_NullType(IT_NullType);
64static constexpr ItemTypeId ITI_Vertex(IT_Vertex);
66static constexpr ItemTypeId ITI_Line2(IT_Line2);
68static constexpr ItemTypeId ITI_Triangle3(IT_Triangle3);
70static constexpr ItemTypeId ITI_Quad4(IT_Quad4);
72static constexpr ItemTypeId ITI_Pentagon5(IT_Pentagon5);
74static constexpr ItemTypeId ITI_Hexagon6(IT_Hexagon6);
76static constexpr ItemTypeId ITI_Tetraedron4(IT_Tetraedron4);
78static constexpr ItemTypeId ITI_Pyramid5(IT_Pyramid5);
80static constexpr ItemTypeId ITI_Pentaedron6(IT_Pentaedron6);
82static constexpr ItemTypeId ITI_Hexaedron8(IT_Hexaedron8);
84static constexpr ItemTypeId ITI_Heptaedron10(IT_Heptaedron10);
86static constexpr ItemTypeId ITI_Octaedron12(IT_Octaedron12);
88static constexpr ItemTypeId ITI_HemiHexa7(IT_HemiHexa7);
90static constexpr ItemTypeId ITI_HemiHexa6(IT_HemiHexa6);
92static constexpr ItemTypeId ITI_HemiHexa5(IT_HemiHexa5);
94static constexpr ItemTypeId ITI_AntiWedgeLeft6(IT_AntiWedgeLeft6);
96static constexpr ItemTypeId ITI_AntiWedgeRight6(IT_AntiWedgeRight6);
98static constexpr ItemTypeId ITI_DiTetra5(IT_DiTetra5);
100static constexpr ItemTypeId ITI_DualNode(IT_DualNode);
102static constexpr ItemTypeId ITI_DualEdge(IT_DualEdge);
104static constexpr ItemTypeId ITI_DualFace(IT_DualFace);
106static constexpr ItemTypeId ITI_DualCell(IT_DualCell);
108static constexpr ItemTypeId ITI_Link(IT_Link);
110static constexpr ItemTypeId ITI_FaceVertex(IT_FaceVertex);
112static constexpr ItemTypeId ITI_CellLine2(IT_CellLine2);
114static constexpr ItemTypeId ITI_DualParticle(IT_DualParticle);
115
117static constexpr ItemTypeId ITI_Enneedron14(IT_Enneedron14);
119static constexpr ItemTypeId ITI_Decaedron16(IT_Decaedron16);
120
122static constexpr ItemTypeId ITI_Heptagon7(IT_Heptagon7);
123
125static constexpr ItemTypeId ITI_Octogon8(IT_Octogon8);
126
128
129
130static constexpr ItemTypeId ITI_Line3(IT_Line3);
132static constexpr ItemTypeId ITI_Triangle6(IT_Triangle6);
134static constexpr ItemTypeId ITI_Quad8(IT_Quad8);
136static constexpr ItemTypeId ITI_Tetraedron10(IT_Tetraedron10);
138static constexpr ItemTypeId ITI_Hexaedron20(IT_Hexaedron20);
140
148static constexpr ItemTypeId ITI_Cell3D_Line2(IT_Cell3D_Line2);
150static constexpr ItemTypeId ITI_Cell3D_Triangle3(IT_Cell3D_Triangle3);
152static constexpr ItemTypeId ITI_Cell3D_Quad4(IT_Cell3D_Quad4);
154
155/*---------------------------------------------------------------------------*/
156/*---------------------------------------------------------------------------*/
157
158} // End namespace Arcane
159
160/*---------------------------------------------------------------------------*/
161/*---------------------------------------------------------------------------*/
162
163#endif
Déclarations de types sur les entités.
Type d'une entité (Item).
Definition ItemTypeId.h:32
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-