Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::mesh::FullCellInfo Class Reference

Info to create/serialize a cell knowing the uniqueId() and owner() of all these sub-entities (cells, edges, and faces). More...

#include <arcane/mesh/FullItemInfo.h>

Collaboration diagram for Arcane::mesh::FullCellInfo:

Public Types

enum  { PI_Node = 1 << 1 , PI_Edge = 1 << 2 , PI_Face = 1 << 3 , PI_Cell = 1 << 4 }

Public Member Functions

 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.
ItemTypeInfotypeInfo () const
Integer typeId () const
Int64 uniqueId () const
Integer owner () const
Integer nbNode () const
Integer nbEdge () const
Integer nbFace () const
Int64 faceUniqueId (Integer index) const
Int32 faceOwner (Integer index) const
Int64 edgeUniqueId (Integer index) const
Int32 edgeOwner (Integer index) const
Int64 nodeUniqueId (Integer index) const
Int32 nodeOwner (Integer index) const
Integer memoryUsed () const
bool hasParentNode () const
Int64 parentNodeUniqueId (Integer index) const
bool hasParentEdge () const
Int64 parentEdgeUniqueId (Integer index) const
Int64 parentEdgeTypeId (Integer index) const
bool hasParentFace () const
Int64 parentFaceUniqueId (Integer index) const
Int64 parentFaceTypeId (Integer index) const
bool hasParentCell () const
Int64 parentCellUniqueId () const
Int64 parentCellTypeId () const
Integer level () const
 AMR.
Int64 hParentCellUniqueId () const
Integer whichChildAmI () const
Int32 flags () const
void print (std::ostream &o) const

Static Public Member Functions

static Integer memoryUsed (ItemTypeInfo *it, Integer parent_info, bool has_edge, bool has_amr, bool with_flags)
 Memory size in Int64 to represent a cell of type it.
static void dump (ItemInternal *cell, ISerializer *buf, Integer parent_info, bool has_edge, bool has_amr, bool with_flags)
static void dump (Cell cell, Array< Int64 > &buf, Integer parent_info, bool has_edge, bool has_amr, bool with_flags)
static Integer parentInfo (IMesh *mesh)

Public Attributes

Int64ConstArrayView m_infos
Integer m_first_edge
Integer m_first_face
Integer m_memory_used
ItemTypeInfom_type
Integer m_first_parent_node
Integer m_first_parent_edge
Integer m_first_parent_face
Integer m_first_parent_cell
Integer m_parent_info
bool m_has_edge
Integer m_first_hParent_cell
 AMR.
bool m_has_amr
bool m_with_flags

Protected Member Functions

void _setInternalInfos ()

Private Attributes

Integer m_nb_node
Integer m_nb_edge
Integer m_nb_face

Friends

std::ostream & operator<< (std::ostream &o, const FullCellInfo &i)

Detailed Description

Info to create/serialize a cell knowing the uniqueId() and owner() of all these sub-entities (cells, edges, and faces).

Definition at line 37 of file FullItemInfo.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Definition at line 41 of file FullItemInfo.h.

Constructor & Destructor Documentation

◆ FullCellInfo()

Arcane::mesh::FullCellInfo::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.

The cells_infos array must remain valid as long as the instance exists.

Definition at line 31 of file FullItemInfo.cc.

References _setInternalInfos(), m_first_hParent_cell, and Arcane::ItemTypeMng::typeFromId().

Here is the call graph for this function:

Member Function Documentation

◆ _setInternalInfos()

void Arcane::mesh::FullCellInfo::_setInternalInfos ( )
protected

AMR

Definition at line 250 of file FullItemInfo.cc.

References m_first_hParent_cell.

Referenced by FullCellInfo().

Here is the caller graph for this function:

◆ dump() [1/2]

void Arcane::mesh::FullCellInfo::dump ( Cell cell,
Array< Int64 > & buf,
Integer parent_info,
bool has_edge,
bool has_amr,
bool with_flags )
static

Definition at line 221 of file FullItemInfo.cc.

◆ dump() [2/2]

void Arcane::mesh::FullCellInfo::dump ( ItemInternal * cell,
ISerializer * buf,
Integer parent_info,
bool has_edge,
bool has_amr,
bool with_flags )
static

Definition at line 213 of file FullItemInfo.cc.

◆ edgeOwner()

Int32 Arcane::mesh::FullCellInfo::edgeOwner ( Integer index) const
inline

Definition at line 72 of file FullItemInfo.h.

◆ edgeUniqueId()

Int64 Arcane::mesh::FullCellInfo::edgeUniqueId ( Integer index) const
inline

Definition at line 71 of file FullItemInfo.h.

◆ faceOwner()

Int32 Arcane::mesh::FullCellInfo::faceOwner ( Integer index) const
inline

Definition at line 70 of file FullItemInfo.h.

◆ faceUniqueId()

Int64 Arcane::mesh::FullCellInfo::faceUniqueId ( Integer index) const
inline

Definition at line 69 of file FullItemInfo.h.

◆ flags()

Int32 Arcane::mesh::FullCellInfo::flags ( ) const
inline

Definition at line 91 of file FullItemInfo.h.

◆ hasParentCell()

bool Arcane::mesh::FullCellInfo::hasParentCell ( ) const
inline

Definition at line 84 of file FullItemInfo.h.

◆ hasParentEdge()

bool Arcane::mesh::FullCellInfo::hasParentEdge ( ) const
inline

Definition at line 78 of file FullItemInfo.h.

◆ hasParentFace()

bool Arcane::mesh::FullCellInfo::hasParentFace ( ) const
inline

Definition at line 81 of file FullItemInfo.h.

◆ hasParentNode()

bool Arcane::mesh::FullCellInfo::hasParentNode ( ) const
inline

Definition at line 76 of file FullItemInfo.h.

◆ hParentCellUniqueId()

Int64 Arcane::mesh::FullCellInfo::hParentCellUniqueId ( ) const
inline

Definition at line 89 of file FullItemInfo.h.

◆ level()

Integer Arcane::mesh::FullCellInfo::level ( ) const
inline

AMR.

Definition at line 88 of file FullItemInfo.h.

References m_first_hParent_cell.

Referenced by Arcane::mesh::OneMeshItemAdder::_AMR_Patch().

Here is the caller graph for this function:

◆ memoryUsed() [1/2]

Integer Arcane::mesh::FullCellInfo::memoryUsed ( ) const
inline

Definition at line 75 of file FullItemInfo.h.

◆ memoryUsed() [2/2]

Integer Arcane::mesh::FullCellInfo::memoryUsed ( ItemTypeInfo * it,
Integer parent_info,
bool has_edge,
bool has_amr,
bool with_flags )
static

Memory size in Int64 to represent a cell of type it.

parent_info describes which parent relationship must be counted

AMR

Definition at line 81 of file FullItemInfo.cc.

References Arcane::ItemTypeInfo::nbLocalEdge(), Arcane::ItemTypeInfo::nbLocalFace(), and Arcane::ItemTypeInfo::nbLocalNode().

Here is the call graph for this function:

◆ nbEdge()

Integer Arcane::mesh::FullCellInfo::nbEdge ( ) const
inline

Definition at line 67 of file FullItemInfo.h.

◆ nbFace()

Integer Arcane::mesh::FullCellInfo::nbFace ( ) const
inline

Definition at line 68 of file FullItemInfo.h.

◆ nbNode()

Integer Arcane::mesh::FullCellInfo::nbNode ( ) const
inline

Definition at line 66 of file FullItemInfo.h.

◆ nodeOwner()

Int32 Arcane::mesh::FullCellInfo::nodeOwner ( Integer index) const
inline

Definition at line 74 of file FullItemInfo.h.

◆ nodeUniqueId()

Int64 Arcane::mesh::FullCellInfo::nodeUniqueId ( Integer index) const
inline

Definition at line 73 of file FullItemInfo.h.

◆ owner()

Integer Arcane::mesh::FullCellInfo::owner ( ) const
inline

Definition at line 65 of file FullItemInfo.h.

◆ parentCellTypeId()

Int64 Arcane::mesh::FullCellInfo::parentCellTypeId ( ) const
inline

Definition at line 86 of file FullItemInfo.h.

◆ parentCellUniqueId()

Int64 Arcane::mesh::FullCellInfo::parentCellUniqueId ( ) const
inline

Definition at line 85 of file FullItemInfo.h.

◆ parentEdgeTypeId()

Int64 Arcane::mesh::FullCellInfo::parentEdgeTypeId ( Integer index) const
inline

Definition at line 80 of file FullItemInfo.h.

◆ parentEdgeUniqueId()

Int64 Arcane::mesh::FullCellInfo::parentEdgeUniqueId ( Integer index) const
inline

Definition at line 79 of file FullItemInfo.h.

◆ parentFaceTypeId()

Int64 Arcane::mesh::FullCellInfo::parentFaceTypeId ( Integer index) const
inline

Definition at line 83 of file FullItemInfo.h.

◆ parentFaceUniqueId()

Int64 Arcane::mesh::FullCellInfo::parentFaceUniqueId ( Integer index) const
inline

Definition at line 82 of file FullItemInfo.h.

◆ parentInfo()

Integer Arcane::mesh::FullCellInfo::parentInfo ( IMesh * mesh)
static

Definition at line 232 of file FullItemInfo.cc.

◆ parentNodeUniqueId()

Int64 Arcane::mesh::FullCellInfo::parentNodeUniqueId ( Integer index) const
inline

Definition at line 77 of file FullItemInfo.h.

◆ print()

void Arcane::mesh::FullCellInfo::print ( std::ostream & o) const

Definition at line 62 of file FullItemInfo.cc.

◆ typeId()

Integer Arcane::mesh::FullCellInfo::typeId ( ) const
inline

Definition at line 63 of file FullItemInfo.h.

◆ typeInfo()

ItemTypeInfo * Arcane::mesh::FullCellInfo::typeInfo ( ) const
inline

Definition at line 62 of file FullItemInfo.h.

◆ uniqueId()

Int64 Arcane::mesh::FullCellInfo::uniqueId ( ) const
inline

Definition at line 64 of file FullItemInfo.h.

◆ whichChildAmI()

Integer Arcane::mesh::FullCellInfo::whichChildAmI ( ) const
inline

Definition at line 90 of file FullItemInfo.h.

◆ operator<<

std::ostream & operator<< ( std::ostream & o,
const FullCellInfo & i )
friend

Definition at line 93 of file FullItemInfo.h.

Member Data Documentation

◆ m_first_edge

Integer Arcane::mesh::FullCellInfo::m_first_edge

Definition at line 131 of file FullItemInfo.h.

◆ m_first_face

Integer Arcane::mesh::FullCellInfo::m_first_face

Definition at line 132 of file FullItemInfo.h.

◆ m_first_hParent_cell

Integer Arcane::mesh::FullCellInfo::m_first_hParent_cell

AMR.

Definition at line 142 of file FullItemInfo.h.

Referenced by _setInternalInfos(), FullCellInfo(), and level().

◆ m_first_parent_cell

Integer Arcane::mesh::FullCellInfo::m_first_parent_cell

Definition at line 138 of file FullItemInfo.h.

◆ m_first_parent_edge

Integer Arcane::mesh::FullCellInfo::m_first_parent_edge

Definition at line 136 of file FullItemInfo.h.

◆ m_first_parent_face

Integer Arcane::mesh::FullCellInfo::m_first_parent_face

Definition at line 137 of file FullItemInfo.h.

◆ m_first_parent_node

Integer Arcane::mesh::FullCellInfo::m_first_parent_node

Definition at line 135 of file FullItemInfo.h.

◆ m_has_amr

bool Arcane::mesh::FullCellInfo::m_has_amr

Definition at line 143 of file FullItemInfo.h.

◆ m_has_edge

bool Arcane::mesh::FullCellInfo::m_has_edge

Definition at line 140 of file FullItemInfo.h.

◆ m_infos

Int64ConstArrayView Arcane::mesh::FullCellInfo::m_infos

Definition at line 121 of file FullItemInfo.h.

◆ m_memory_used

Integer Arcane::mesh::FullCellInfo::m_memory_used

Definition at line 133 of file FullItemInfo.h.

◆ m_nb_edge

Integer Arcane::mesh::FullCellInfo::m_nb_edge
private

Definition at line 126 of file FullItemInfo.h.

◆ m_nb_face

Integer Arcane::mesh::FullCellInfo::m_nb_face
private

Definition at line 127 of file FullItemInfo.h.

◆ m_nb_node

Integer Arcane::mesh::FullCellInfo::m_nb_node
private

Definition at line 125 of file FullItemInfo.h.

◆ m_parent_info

Integer Arcane::mesh::FullCellInfo::m_parent_info

Definition at line 139 of file FullItemInfo.h.

◆ m_type

ItemTypeInfo* Arcane::mesh::FullCellInfo::m_type

Definition at line 134 of file FullItemInfo.h.

◆ m_with_flags

bool Arcane::mesh::FullCellInfo::m_with_flags

Definition at line 144 of file FullItemInfo.h.


The documentation for this class was generated from the following files: