58 bool has_edge,
bool has_amr,
bool with_flags =
false);
63 Integer typeId()
const {
return CheckedConvert::toInteger(m_infos[0]); }
64 Int64 uniqueId()
const {
return m_infos[1]; }
65 Integer owner()
const {
return CheckedConvert::toInteger(m_infos[2]); }
66 Integer nbNode()
const {
return m_nb_node; }
67 Integer nbEdge()
const {
return m_nb_edge; }
68 Integer nbFace()
const {
return m_nb_face; }
69 Int64 faceUniqueId(
Integer index)
const {
return m_infos[m_first_face + (index * 2)]; }
70 Int32 faceOwner(
Integer index)
const {
return CheckedConvert::toInt32(m_infos[m_first_face + (index * 2) + 1]); }
71 Int64 edgeUniqueId(
Integer index)
const {
return m_infos[m_first_edge + (index * 2)]; }
72 Int32 edgeOwner(
Integer index)
const {
return CheckedConvert::toInt32(m_infos[m_first_edge + (index * 2) + 1]); }
73 Int64 nodeUniqueId(
Integer index)
const {
return m_infos[3 + (index * 2)]; }
74 Int32 nodeOwner(
Integer index)
const {
return CheckedConvert::toInt32(m_infos[3 + (index * 2) + 1]); }
75 Integer memoryUsed()
const {
return m_memory_used; }
76 bool hasParentNode()
const {
return (m_parent_info & PI_Node); }
77 Int64 parentNodeUniqueId(
Integer index)
const {
return m_infos[m_first_parent_node + index]; }
78 bool hasParentEdge()
const {
return (m_parent_info & PI_Edge); }
79 Int64 parentEdgeUniqueId(
Integer index)
const {
return m_infos[m_first_parent_edge + (index * 2)]; }
80 Int64 parentEdgeTypeId(
Integer index)
const {
return m_infos[m_first_parent_edge + (index * 2) + 1]; }
81 bool hasParentFace()
const {
return (m_parent_info & PI_Face); }
82 Int64 parentFaceUniqueId(
Integer index)
const {
return m_infos[m_first_parent_face + (index * 2)]; }
83 Int64 parentFaceTypeId(
Integer index)
const {
return m_infos[m_first_parent_face + (index * 2) + 1]; }
84 bool hasParentCell()
const {
return (m_parent_info & PI_Cell); }
85 Int64 parentCellUniqueId()
const {
return m_infos[m_first_parent_cell]; }
86 Int64 parentCellTypeId()
const {
return m_infos[m_first_parent_cell + 1]; }
91 Int32 flags()
const {
return CheckedConvert::toInt32(m_with_flags ? m_infos[
m_first_hParent_cell + 3] : 0); }
93 friend inline std::ostream& operator<<(std::ostream& o,
const FullCellInfo& i)
101 void print(std::ostream& o)
const;
107 ARCCORE_DEPRECATED_2020(
"Use dump() overload with buffer")
108 static
Integer memoryUsed(ItemTypeInfo* it,
Integer parent_info,
bool has_edge,
bool has_amr,
bool with_flags);
109 ARCCORE_DEPRECATED_2020(
"Use dump() overload with buffer")
110 static
void dump(ItemInternal* cell, ISerializer* buf,
Integer parent_info,
bool has_edge,
bool has_amr,
bool with_flags);
112 static
void dump(
Cell cell, Array<
Int64>& buf,
Integer parent_info,
bool has_edge,
bool has_amr,
bool with_flags);
113 static
Integer parentInfo(IMesh* mesh);
134 ItemTypeInfo* m_type;
FullCellInfo(Int64ConstArrayView cells_infos, Integer cell_index, ItemTypeMng *itm, Integer parent_info, bool has_edge, bool has_amr, bool with_flags=false)
References the info of a cell.