12#ifndef ARCANE_CORE_ITEMUNIQUEID_H
13#define ARCANE_CORE_ITEMUNIQUEID_H
17#include "arcane/utils/HashFunction.h"
19#include "arcane/ArcaneTypes.h"
39 constexpr ARCCORE_HOST_DEVICE
explicit ItemUniqueId(Int64 uid)
43 constexpr ARCCORE_HOST_DEVICE
operator Int64()
const {
return m_unique_id; }
44 ARCANE_DEPRECATED
operator Int32()
const {
return asInt32(); }
45 constexpr ARCCORE_HOST_DEVICE Int64 asInt64()
const {
return m_unique_id; }
46 Int32 asInt32()
const;
47 Integer asInteger()
const
60 return lhs.asInt64() <
rhs.asInt64();
64 return lhs <
rhs.asInt64();
68 return lhs.asInt64() <
rhs;
72 return lhs <
rhs.asInt64();
76 return lhs.asInt64() <
rhs;
81 return lhs.asInt64() <=
rhs.asInt64();
85 return lhs <=
rhs.asInt64();
89 return lhs.asInt64() <=
rhs;
93 return lhs <=
rhs.asInt64();
97 return lhs.asInt64() <=
rhs;
102 return lhs.asInt64() >
rhs.asInt64();
106 return lhs >
rhs.asInt64();
110 return lhs.asInt64() >
rhs;
114 return lhs >
rhs.asInt64();
118 return lhs.asInt64() >
rhs;
123 return lhs.asInt64() >=
rhs.asInt64();
127 return lhs >=
rhs.asInt64();
131 return lhs.asInt64() >=
rhs;
135 return lhs >=
rhs.asInt64();
139 return lhs.asInt64() >=
rhs;
144 return lhs.asInt64() !=
rhs.asInt64();
148 return lhs !=
rhs.asInt64();
152 return lhs.asInt64() !=
rhs;
156 return lhs !=
rhs.asInt64();
160 return lhs.asInt64() !=
rhs;
165 return lhs.asInt64() ==
rhs.asInt64();
169 return lhs ==
rhs.asInt64();
173 return lhs.asInt64() ==
rhs;
177 return lhs ==
rhs.asInt64();
181 return lhs.asInt64() ==
rhs;
184 friend ARCANE_CORE_EXPORT std::ostream&
189 Int64 m_unique_id = NULL_ITEM_ID;
210 typedef Int64 HashValueType;
Fonctor pour une fonction de hachage.
Identifiant unique d'une entité.
Lecteur des fichiers de maillage via la bibliothèque LIMA.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
Structure équivalente à la valeur booléenne vrai.