Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
Arcane::ItemInternal Class Reference

Public Types

typedef ItemInternalItemInternalPtr
Public Types inherited from Arcane::ItemFlags
enum  : FlagType {
  II_Boundary = 1 << 1 , II_HasFrontCell = 1 << 2 , II_HasBackCell = 1 << 3 , II_FrontCellIsFirst = 1 << 4 ,
  II_BackCellIsFirst = 1 << 5 , II_Own = 1 << 6 , II_Added = 1 << 7 , II_Suppressed = 1 << 8 ,
  II_Shared = 1 << 9 , II_SubDomainBoundary = 1 << 10 , II_JustAdded = 1 << 12 , II_NeedRemove = 1 << 13 ,
  II_SlaveFace = 1 << 14 , II_MasterFace = 1 << 15 , II_Detached = 1 << 16 , II_HasEdgeFor1DItems = 1 << 17 ,
  II_Coarsen = 1 << 18 , II_DoNothing = 1 << 19 , II_Refine = 1 << 20 , II_JustRefined = 1 << 21 ,
  II_JustCoarsened = 1 << 22 , II_Inactive = 1 << 23 , II_CoarsenInactive = 1 << 24 , II_Overlap = 1 << 25 ,
  II_InPatch = 1 << 26 , II_UserMark1 = 1 << 30 , II_UserMark2 = 1 << 31
}
using FlagType = Int32

Public Member Functions

ItemInternalboundaryCell () const
 Connected cell to the entity if the entity is a boundary entity (0 if none).
ItemInternalbackCell () const
 Cell behind the entity (nullItem() if none).
ItemInternalfrontCell () const
 Cell in front of the entity (nullItem() if none).
ItemInternalmasterFace () const
ItemSharedInfosharedInfo () const
 Shared information of the entity.
ItemInternalVectorView internalItems (Node *) const
ItemInternalVectorView internalItems (Edge *) const
ItemInternalVectorView internalItems (Face *) const
ItemInternalVectorView internalItems (Cell *) const
ItemInternalinternalNode (Int32 index) const
ItemInternalinternalEdge (Int32 index) const
ItemInternalinternalFace (Int32 index) const
ItemInternalinternalCell (Int32 index) const
ItemInternalinternalHParent (Int32 index) const
ItemInternalinternalHChild (Int32 index) const
ItemInternalparent (Integer index) const
const ItemInternaltopHParent () const
 AMR.
ItemInternaltopHParent ()
Int32 dataIndex ()
Int32parentPtr ()
 Pointer to the list of parents.
Int32 whichChildAmI (const ItemInternal *iitem) const
constexpr Integer neededMemory () const
 Memory required to store the entity information.
constexpr Integer minimumNeededMemory () const
 Minimum memory required to store the entity information (without buffer).
Int32 nodeLocalId (Integer index)
Int32 edgeLocalId (Integer index)
Int32 faceLocalId (Integer index)
Int32 cellLocalId (Integer index)
void setDataIndex (Integer)
void setSharedInfo (ItemSharedInfo *shared_infos, ItemTypeId type_id)
Public Member Functions inherited from Arcane::MutableItemBase
 MutableItemBase (ItemBaseBuildInfo x)
 MutableItemBase (const ItemBase &x)
 MutableItemBase (ItemInternal *x)
void setUniqueId (Int64 uid)
void unsetUniqueId ()
 Nullifies the uniqueId to the value NULL_ITEM_UNIQUE_ID.
void setOwner (Integer suid, Int32 current_sub_domain)
 Sets the sub-domain number of the entity owner.
void setFlags (Int32 f)
 Sets the entity flags.
void addFlags (Int32 added_flags)
 Adds the flags added_flags to those of the entity.
void removeFlags (Int32 removed_flags)
 Removes the flags removed_flags from those of the entity.
void setDetached (bool v)
 Sets the detached state of the entity.
void reinitialize (Int64 uid, Int32 aowner, Int32 owner_rank)
void setLocalId (Int32 local_id)
void setParent (Int32 aindex, Int32 parent_local_id)
 Sets the i-th parent (currently aindex must be 0).
Public Member Functions inherited from Arcane::ItemBase
constexpr ItemBase (ItemBaseBuildInfo x)
 ItemBase (ItemInternal *x)
Int32 localId () const
 Local number (in the subdomain) of the entity.
ItemLocalId itemLocalId () const
 Local number (in the subdomain) of the entity.
ItemUniqueId uniqueId () const
 Unique number of the entity.
Int32 owner () const
 Number of the owning subdomain of the entity.
Int32 flags () const
 Flags of the entity.
Integer nbNode () const
 Number of nodes of the entity.
Integer nbEdge () const
 Number of edges of the entity or number of edges connected to the entity (for nodes).
Integer nbFace () const
 Number of faces of the entity or number of faces connected to the entity (for nodes and edges).
Integer nbCell () const
 Number of cells connected to the entity (for nodes, edges, and faces).
Int32 nbHParent () const
 Number of parents for AMR.
Int32 nbHChildren () const
 Number of children for AMR.
Integer nbParent () const
 Number of parent for sub-meshes.
Int16 typeId () const
 Type of the entity.
ItemTypeId itemTypeId () const
 Type of the entity.
ItemTypeInfotypeInfo () const
 Type of the entity.
Int32 level () const
bool isAncestor () const
bool hasHChildren () const
bool isActive () const
bool isSubactive () const
IItemFamilyfamily () const
 Family the entity belongs to.
eItemKind kind () const
 Kind of the entity.
bool null () const
 True if the entity is the null entity.
bool isNull () const
 True if the entity is the null entity.
bool isOwn () const
 True if the entity belongs to the subdomain.
bool isShared () const
 True if the entity is shared by other subdomains.
bool isSuppressed () const
 True if the entity is suppressed.
bool isDetached () const
 True if the entity is detached.
bool isBoundary () const
 true if the entity is on the boundary
ItemBase boundaryCell () const
 Cell connected to the entity if the entity is a boundary entity (0 if none).
ItemBase backCell () const
 Cell behind the entity (nullItem() if none).
Int32 backCellId () const
 Cell behind the entity (NULL_ITEM_LOCAL_ID if none).
ItemBase frontCell () const
 Cell in front of the entity (nullItem() if none).
Int32 frontCellId () const
 Cell in front of the entity (NULL_ITEM_LOCAL_ID if none).
ItemBase masterFace () const
bool isMasterFace () const
 true if it is the master face of an interface
bool isSlaveFace () const
 true if it is a slave face of an interface
Int32 parentId (Integer index) const
Int32 nodeId (Integer index) const
Int32 edgeId (Integer index) const
Int32 faceId (Integer index) const
Int32 cellId (Integer index) const
Int32 hParentId (Int32 index) const
Int32 hChildId (Int32 index) const
ItemInternalVectorView internalNodes () const
 Methods using the new connectivities to access connectivity information. Should not be used outside of Arcane.
ItemInternalVectorView internalEdges () const
ItemInternalVectorView internalFaces () const
ItemInternalVectorView internalCells () const
impl::ItemIndexedListView< DynExtentnodeList () const
 Methods using the new connectivities to access connectivity information. Should not be used outside of Arcane.
impl::ItemIndexedListView< DynExtentedgeList () const
impl::ItemIndexedListView< DynExtentfaceList () const
impl::ItemIndexedListView< DynExtentcellList () const
impl::ItemIndexedListView< DynExtentitemList (Node *) const
impl::ItemIndexedListView< DynExtentitemList (Edge *) const
impl::ItemIndexedListView< DynExtentitemList (Face *) const
impl::ItemIndexedListView< DynExtentitemList (Cell *) const
ItemBase nodeBase (Int32 index) const
ItemBase edgeBase (Int32 index) const
ItemBase faceBase (Int32 index) const
ItemBase cellBase (Int32 index) const
ItemBase hParentBase (Int32 index) const
ItemBase hChildBase (Int32 index) const
ItemBase parentBase (Int32 index) const
bool hasFlags (Int32 flags) const
 Returns whether the flags flags are set for the entity.
Int32 whichChildAmI (Int32 local_id) const
ItemBase topHParentBase () const
MutableItemBase toMutable ()
 Mutable interface of this entity.
ItemInternal * itemInternal () const
ItemInternalVectorView _internalActiveCells (Int32Array &local_ids) const

Static Public Member Functions

static ItemInternalnullItem ()
static ItemSharedInfo_getSharedInfo (const ItemInternalPtr *items)
Static Public Member Functions inherited from Arcane::ItemFlags
static constexpr bool isOwn (FlagType f)
static constexpr bool isShared (FlagType f)
static constexpr bool isBoundary (FlagType f)
static constexpr bool isSubDomainBoundary (FlagType f)
static constexpr bool hasBackCell (FlagType f)
static constexpr bool isSubDomainBoundaryOutside (FlagType f)
static constexpr Int32 backCellIndex (FlagType f)
 Index in the face for the back cell.
static constexpr Int32 frontCellIndex (FlagType f)
 Index in the face for the front cell.

Static Public Attributes

static ItemInternal nullItemInternal
 Null entity.
Static Public Attributes inherited from Arcane::ItemFlags
static const int II_InterfaceFlags

Friends

class mesh::DynamicMeshKindInfos
class mesh::ItemFamily

Detailed Description

Definition at line 940 of file ItemInternal.h.

Member Typedef Documentation

◆ ItemInternalPtr

typedef ItemInternal* Arcane::ItemInternal::ItemInternalPtr

Definition at line 1086 of file ItemInternal.h.

Member Function Documentation

◆ _getSharedInfo()

ItemSharedInfo * Arcane::ItemInternal::_getSharedInfo ( const ItemInternalPtr * items)
inlinestatic

Definition at line 1090 of file ItemInternal.h.

◆ backCell()

ItemInternal * Arcane::ItemInternal::backCell ( ) const
inline

Cell behind the entity (nullItem() if none).

Definition at line 962 of file ItemInternal.h.

References backCell(), Arcane::ItemBase::flags(), Arcane::ItemFlags::II_BackCellIsFirst, and Arcane::ItemFlags::II_HasBackCell.

Referenced by backCell().

◆ boundaryCell()

ItemInternal * Arcane::ItemInternal::boundaryCell ( ) const
inline

Connected cell to the entity if the entity is a boundary entity (0 if none).

Definition at line 959 of file ItemInternal.h.

References boundaryCell(), Arcane::ItemBase::flags(), and Arcane::ItemFlags::II_Boundary.

Referenced by boundaryCell().

◆ cellLocalId()

Int32 Arcane::ItemInternal::cellLocalId ( Integer index)
inline

Definition at line 1070 of file ItemInternal.h.

◆ dataIndex()

Int32 Arcane::ItemInternal::dataIndex ( )
inline

Definition at line 1026 of file ItemInternal.h.

◆ edgeLocalId()

Int32 Arcane::ItemInternal::edgeLocalId ( Integer index)
inline

Definition at line 1066 of file ItemInternal.h.

◆ faceLocalId()

Int32 Arcane::ItemInternal::faceLocalId ( Integer index)
inline

Definition at line 1068 of file ItemInternal.h.

◆ frontCell()

ItemInternal * Arcane::ItemInternal::frontCell ( ) const
inline

Cell in front of the entity (nullItem() if none).

Definition at line 970 of file ItemInternal.h.

References Arcane::ItemBase::flags(), frontCell(), Arcane::ItemFlags::II_FrontCellIsFirst, and Arcane::ItemFlags::II_HasFrontCell.

Referenced by frontCell().

◆ internalCell()

ItemInternal * Arcane::ItemInternal::internalCell ( Int32 index) const
inline

Definition at line 1010 of file ItemInternal.h.

◆ internalEdge()

ItemInternal * Arcane::ItemInternal::internalEdge ( Int32 index) const
inline

Definition at line 1006 of file ItemInternal.h.

◆ internalFace()

ItemInternal * Arcane::ItemInternal::internalFace ( Int32 index) const
inline

Definition at line 1008 of file ItemInternal.h.

◆ internalHChild()

ItemInternal * Arcane::ItemInternal::internalHChild ( Int32 index) const
inline

Definition at line 1014 of file ItemInternal.h.

◆ internalHParent()

ItemInternal * Arcane::ItemInternal::internalHParent ( Int32 index) const
inline

Definition at line 1012 of file ItemInternal.h.

◆ internalItems() [1/4]

ItemInternalVectorView Arcane::ItemInternal::internalItems ( Cell * ) const
inline

Definition at line 999 of file ItemInternal.h.

◆ internalItems() [2/4]

ItemInternalVectorView Arcane::ItemInternal::internalItems ( Edge * ) const
inline

Definition at line 995 of file ItemInternal.h.

◆ internalItems() [3/4]

ItemInternalVectorView Arcane::ItemInternal::internalItems ( Face * ) const
inline

Definition at line 997 of file ItemInternal.h.

◆ internalItems() [4/4]

ItemInternalVectorView Arcane::ItemInternal::internalItems ( Node * ) const
inline

Definition at line 993 of file ItemInternal.h.

◆ internalNode()

ItemInternal * Arcane::ItemInternal::internalNode ( Int32 index) const
inline

Definition at line 1004 of file ItemInternal.h.

◆ masterFace()

ItemInternal * Arcane::ItemInternal::masterFace ( ) const
inline

Definition at line 977 of file ItemInternal.h.

◆ minimumNeededMemory()

Integer Arcane::ItemInternal::minimumNeededMemory ( ) const
inlineconstexpr

Minimum memory required to store the entity information (without buffer).

Definition at line 1059 of file ItemInternal.h.

References minimumNeededMemory().

Referenced by minimumNeededMemory().

◆ neededMemory()

Integer Arcane::ItemInternal::neededMemory ( ) const
inlineconstexpr

Memory required to store the entity information.

Definition at line 1055 of file ItemInternal.h.

References neededMemory().

Referenced by neededMemory().

◆ nodeLocalId()

Int32 Arcane::ItemInternal::nodeLocalId ( Integer index)
inline

Definition at line 1064 of file ItemInternal.h.

◆ nullItem()

ItemInternal * Arcane::ItemInternal::nullItem ( )
inlinestatic

Definition at line 951 of file ItemInternal.h.

◆ parent()

ItemInternal * Arcane::ItemInternal::parent ( Integer index) const
inline

Definition at line 1016 of file ItemInternal.h.

◆ parentPtr()

Int32 * Arcane::ItemInternal::parentPtr ( )
inline

Pointer to the list of parents.

Since currently only one level is supported, it is only allowed to call parentPtr()[0]. This does not allow any verification, so it is preferable to use parentId() or setParent() instead.

As of July 2022, this method is no longer used in Arcane, so if no code uses it (which should be the case since it is an internal method), we can quickly remove it.

Definition at line 1042 of file ItemInternal.h.

References parentPtr().

Referenced by parentPtr().

◆ setDataIndex()

void Arcane::ItemInternal::setDataIndex ( Integer )

Definition at line 239 of file ItemInternal.cc.

◆ setSharedInfo()

void Arcane::ItemInternal::setSharedInfo ( ItemSharedInfo * shared_infos,
ItemTypeId type_id )
inline

Definition at line 1078 of file ItemInternal.h.

◆ sharedInfo()

ItemSharedInfo * Arcane::ItemInternal::sharedInfo ( ) const
inline

Shared information of the entity.

Definition at line 988 of file ItemInternal.h.

References sharedInfo().

Referenced by sharedInfo().

◆ topHParent() [1/2]

ItemInternal * Arcane::ItemInternal::topHParent ( )

Definition at line 140 of file ItemInternal.cc.

◆ topHParent() [2/2]

const ItemInternal * Arcane::ItemInternal::topHParent ( ) const

◆ whichChildAmI()

Int32 Arcane::ItemInternal::whichChildAmI ( const ItemInternal * iitem) const
Returns
the rank of the child (iitem). Example: if rank = m_internal->whichChildAmI(iitem); then m_internal->hChild(rank) would be iitem;

Definition at line 167 of file ItemInternal.cc.

References Arcane::ItemBase::hasHChildren(), and Arcane::ItemBase::nbHChildren().

◆ mesh::DynamicMeshKindInfos

friend class mesh::DynamicMeshKindInfos
friend

Definition at line 944 of file ItemInternal.h.

◆ mesh::ItemFamily

friend class mesh::ItemFamily
friend

Definition at line 945 of file ItemInternal.h.

Member Data Documentation

◆ nullItemInternal

ItemInternal Arcane::ItemInternal::nullItemInternal
static

Null entity.

Definition at line 950 of file ItemInternal.h.


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