59 bool has_edge,
bool has_amr,
bool with_flags =
false);
64 Integer typeId()
const {
return CheckedConvert::toInteger(m_infos[0]); }
66 Int64 uniqueId()
const {
return m_infos[1]; }
67 Int32 owner()
const {
return CheckedConvert::toInt32(m_infos[2]); }
68 Integer nbNode()
const {
return m_nb_node; }
69 Integer nbEdge()
const {
return m_nb_edge; }
70 Integer nbFace()
const {
return m_nb_face; }
71 Int64 faceUniqueId(
Integer index)
const {
return m_infos[m_first_face + (index * 2)]; }
72 Int32 faceOwner(
Integer index)
const {
return CheckedConvert::toInt32(m_infos[m_first_face + (index * 2) + 1]); }
73 Int64 edgeUniqueId(
Integer index)
const {
return m_infos[m_first_edge + (index * 2)]; }
74 Int32 edgeOwner(
Integer index)
const {
return CheckedConvert::toInt32(m_infos[m_first_edge + (index * 2) + 1]); }
75 Int64 nodeUniqueId(
Integer index)
const {
return m_infos[3 + (index * 2)]; }
76 Int32 nodeOwner(
Integer index)
const {
return CheckedConvert::toInt32(m_infos[3 + (index * 2) + 1]); }
77 Integer memoryUsed()
const {
return m_memory_used; }
78 bool hasParentNode()
const {
return (m_parent_info & PI_Node); }
79 Int64 parentNodeUniqueId(
Integer index)
const {
return m_infos[m_first_parent_node + index]; }
80 bool hasParentEdge()
const {
return (m_parent_info & PI_Edge); }
81 Int64 parentEdgeUniqueId(
Integer index)
const {
return m_infos[m_first_parent_edge + (index * 2)]; }
82 Int64 parentEdgeTypeId(
Integer index)
const {
return m_infos[m_first_parent_edge + (index * 2) + 1]; }
83 bool hasParentFace()
const {
return (m_parent_info & PI_Face); }
84 Int64 parentFaceUniqueId(
Integer index)
const {
return m_infos[m_first_parent_face + (index * 2)]; }
85 Int64 parentFaceTypeId(
Integer index)
const {
return m_infos[m_first_parent_face + (index * 2) + 1]; }
86 bool hasParentCell()
const {
return (m_parent_info & PI_Cell); }
87 Int64 parentCellUniqueId()
const {
return m_infos[m_first_parent_cell]; }
88 Int64 parentCellTypeId()
const {
return m_infos[m_first_parent_cell + 1]; }
93 Int32 flags()
const {
return CheckedConvert::toInt32(m_with_flags ? m_infos[
m_first_hParent_cell + 3] : 0); }
95 friend inline std::ostream& operator<<(std::ostream& o,
const FullCellInfo& i)
103 void print(std::ostream& o)
const;
109 ARCCORE_DEPRECATED_2020(
"Use dump() overload with buffer")
110 static
Integer memoryUsed(ItemTypeInfo* it,
Integer parent_info,
bool has_edge,
bool has_amr,
bool with_flags);
111 ARCCORE_DEPRECATED_2020(
"Use dump() overload with buffer")
112 static
void dump(ItemInternal* cell, ISerializer* buf,
Integer parent_info,
bool has_edge,
bool has_amr,
bool with_flags);
114 static
void dump(
Cell cell, Array<
Int64>& buf,
Integer parent_info,
bool has_edge,
bool has_amr,
bool with_flags);
115 static
Integer parentInfo(IMesh* mesh);
136 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.