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

Overriding the IncrementalItemConnectivity type to manage Face -> BackCell and FrontCell connectivities. More...

#include <arcane/mesh/ConnectivityNewWithDependenciesTypes.h>

Inheritance diagram for Arcane::mesh::FaceToCellIncrementalItemConnectivity:
Collaboration diagram for Arcane::mesh::FaceToCellIncrementalItemConnectivity:

Public Member Functions

 FaceToCellIncrementalItemConnectivity (IItemFamily *source_family, IItemFamily *target_family, const String &aname)
void addConnectedItem (ItemLocalId source_item, ItemLocalId target_item) override
 Adds the entity with localId() target_local_id to the connectivity of source_item.
void removeConnectedItem (ItemLocalId source_item, ItemLocalId target_item) override
 Removes the entity with localId() target_local_id from the connectivity of source_item.
Public Member Functions inherited from Arcane::mesh::FaceToCellConnectivity
 FaceToCellConnectivity (IItemFamily *source_family, IItemFamily *target_family)
Public Member Functions inherited from Arcane::mesh::IncrementalItemConnectivity
 IncrementalItemConnectivity (IItemFamily *source_family, IItemFamily *target_family, const String &aname)
void addConnectedItems (ItemLocalId source_item, Integer nb_item)
void setConnectedItems (ItemLocalId source_item, Int32ConstArrayView target_local_ids) override
 Allocates and positions entities connected to source_item.
void removeConnectedItems (ItemLocalId source_item) override
 Removes all entities connected to source_item.
void addConnectedItem (ItemLocalId source_item, ItemLocalId target_local_id) override
 Adds the entity with localId() target_local_id to the connectivity of source_item.
void removeConnectedItem (ItemLocalId source_item, ItemLocalId target_local_id) override
 Removes the entity with localId() target_local_id from the connectivity of source_item.
void replaceConnectedItem (ItemLocalId source_item, Integer index, ItemLocalId target_local_id) override
 Replaces the entity at index index of source_item with the entity with localId() target_local_id.
void replaceConnectedItems (ItemLocalId source_item, Int32ConstArrayView target_local_ids) override
 Replaces the entities of source_item with the entities with localId() target_local_ids.
bool hasConnectedItem (ItemLocalId source_item, ItemLocalId target_local_id) const override
 Tests the existence of a connectivity between source_item and the entity with localId() target_local_id.
void notifySourceItemAdded (ItemLocalId item) override
 Notifies the connectivity that an entity has been added to the source family.
void notifyReadFromDump () override
 Notifies the connectivity that a read has been performed from a dump.
Integer preAllocatedSize () const final
 Number of entities pre-allocated for the connectivity of each entity.
void setPreAllocatedSize (Integer value) final
 Sets the number of entities to pre-allocate for the connectivity of each entity.
void dumpStats (std::ostream &out) const override
 Dumps statistics on usage and memory used to the stream out.
void compactConnectivityList ()
 Compresses the connectivity list.
Public Member Functions inherited from Arcane::mesh::IncrementalItemConnectivityBase
 IncrementalItemConnectivityBase (IItemFamily *source_family, IItemFamily *target_family, const String &aname)
 IncrementalItemConnectivityBase (const IncrementalItemConnectivityBase &)=delete
 IncrementalItemConnectivityBase (IncrementalItemConnectivityBase &&)=delete
IncrementalItemConnectivityBase & operator= (const IncrementalItemConnectivityBase &)=delete
IncrementalItemConnectivityBase & operator= (IncrementalItemConnectivityBase &&)=delete
void notifySourceFamilyLocalIdChanged (Int32ConstArrayView new_to_old_ids) override
 Notifies the connectivity that the source family has been compacted.
void notifyTargetFamilyLocalIdChanged (Int32ConstArrayView old_to_new_ids) override
 Notifies the connectivity that the target family has been compacted.
Integer nbConnectedItem (ItemLocalId lid) const final
 Number of entities connected to the source entity with local ID lid.
Int32 connectedItemLocalId (ItemLocalId lid, Integer index) const final
 localId() of the index-th entity connected to the source entity with local ID lid
IndexedItemConnectivityViewBase connectivityView () const
IndexedItemConnectivityAccessor connectivityAccessor () const
ItemConnectivityContainerView connectivityContainerView () const
Int32 maxNbConnectedItem () const override
 Maximum number of entities connected to a source entity.
void reserveMemoryForNbSourceItems (Int32 n, bool pre_alloc_connectivity) override
 Reserves memory for n source entities.
IIncrementalItemConnectivityInternal_internalApi () override
 Internal Arcane API.
Int32ConstArrayView _connectedItemsLocalId (ItemLocalId lid) const
Int32ArrayView _connectedItemsLocalId (ItemLocalId lid)
Int32ArrayView connectivityIndex ()
Int32ArrayView connectivityList ()
void setItemConnectivityList (ItemInternalConnectivityList *ilist, Int32 index)
 Indicates that this connectivity is associated with one of the connectivities of ItemInternal.
void dumpInfos ()
Public Member Functions inherited from Arcane::mesh::AbstractIncrementalItemConnectivity
 AbstractIncrementalItemConnectivity (IItemFamily *source_family, IItemFamily *target_family, const String &connectivity_name)
String name () const final
 Name of the connectivity.
ConstArrayView< IItemFamily * > families () const override
 List of families (sourceFamily() + targetFamily()).
IItemFamilysourceFamily () const override
 Source family.
IItemFamilytargetFamily () const override
 Target family.
Ref< IIncrementalItemSourceConnectivitytoSourceReference () override
 Returns a reference to the instance.
Ref< IIncrementalItemTargetConnectivitytoTargetReference () override
 Returns a reference to the instance.
Public Member Functions inherited from Arcane::TraceAccessor
 TraceAccessor (ITraceMng *m)
 Constructs an accessor via the trace manager m.
 TraceAccessor (const TraceAccessor &rhs)
 Copy constructor.
TraceAccessoroperator= (const TraceAccessor &rhs)
 Copy assignment operator.
virtual ~TraceAccessor ()
 Frees resources.
ITraceMngtraceMng () const
 Trace manager.
TraceMessage info () const
 Flow for an information message.
TraceMessage pinfo () const
 Flow for a parallel information message.
TraceMessage info (char category) const
 Flow for an information message of a given category.
TraceMessage pinfo (char category) const
 Flow for a parallel information message of a given category.
TraceMessage info (bool v) const
 Flow for an information message.
TraceMessage warning () const
 Flow for a warning message.
TraceMessage pwarning () const
TraceMessage error () const
 Flow for an error message.
TraceMessage perror () const
TraceMessage log () const
 Flow for a log message.
TraceMessage plog () const
 Flow for a log message.
TraceMessage logdate () const
 Flow for a log message preceded by the date.
TraceMessage fatal () const
 Flow for a fatal error message.
TraceMessage pfatal () const
 Flow for a parallel fatal error message.
TraceMessageDbg debug (Trace::eDebugLevel=Trace::Medium) const
 Flow for a debug message.
Trace::eDebugLevel configDbgLevel () const
 Debug level of the configuration file.
TraceMessage info (Int32 verbose_level) const
 Flow for an information message of a given level.
TraceMessage linfo () const
 Flow for an information message with the local information level of this instance.
TraceMessage linfo (Int32 relative_level) const
 Flow for an information message with the local information level of this instance.
void fatalMessage (const StandaloneTraceMessage &o) const
Public Member Functions inherited from Arcane::ReferenceCounterImpl
void addReference ()
void removeReference ()
void _internalAddReference ()
bool _internalRemoveReference ()

Private Member Functions

void _addFrontCellToFace (ItemInternal *face, ItemInternal *cell)
void _addBackCellToFace (ItemInternal *face, ItemInternal *cell)
void _setBackAndFrontCells (ItemInternal *face, ItemLocalId back_cell_lid, ItemLocalId front_cell_lid)
void _removeConnectedItem (ItemInternal *face, ItemLocalId cell_to_remove_lid)

Additional Inherited Members

Protected Member Functions inherited from Arcane::mesh::FaceToCellConnectivity
bool isFrontCell (ItemLocalId source_item, ItemLocalId target_item)
void _checkValidSourceTargetItems (ItemInternal *source, ItemInternal *target)
Protected Member Functions inherited from Arcane::mesh::IncrementalItemConnectivityBase
void _initializeStorage (ConnectivityItemVector *civ) override
 Implements the initialization of civ for this connectivity.
ItemVectorView _connectedItems (ItemLocalId item, ConnectivityItemVector &con_items) const final
 Fills con_items with the entities connected to item.
void _notifyConnectivityListChanged ()
void _notifyConnectivityIndexChanged ()
void _notifyConnectivityNbItemChanged ()
void _notifyConnectivityNbItemChangedFromObservable ()
void _computeMaxNbConnectedItem ()
void _setNewMaxNbConnectedItems (Int32 new_max)
void _setMaxNbConnectedItemsInConnectivityList ()
Protected Member Functions inherited from Arcane::mesh::AbstractIncrementalItemConnectivity
ConstArrayView< IItemFamily * > _families () const
IItemFamily_sourceFamily () const
IItemFamily_targetFamily () const
Protected Member Functions inherited from Arcane::TraceAccessor
void _setLocalVerboseLevel (Int32 v)
Int32 _localVerboseLevel () const
Protected Attributes inherited from Arcane::mesh::FaceToCellConnectivity
FaceFamilym_face_family
CellFamilym_cell_family
Protected Attributes inherited from Arcane::mesh::IncrementalItemConnectivityBase
bool m_is_empty = true
Int32ArrayView m_connectivity_nb_item
Int32ArrayView m_connectivity_index
Int32ArrayView m_connectivity_list
IncrementalItemConnectivityContainerm_p = nullptr
ItemInternalConnectivityListm_item_connectivity_list = nullptr
Integer m_item_connectivity_index = -1
std::unique_ptr< InternalApim_internal_api

Detailed Description

Overriding the IncrementalItemConnectivity type to manage Face -> BackCell and FrontCell connectivities.

Definition at line 188 of file ConnectivityNewWithDependenciesTypes.h.

Constructor & Destructor Documentation

◆ FaceToCellIncrementalItemConnectivity()

Arcane::mesh::FaceToCellIncrementalItemConnectivity::FaceToCellIncrementalItemConnectivity ( IItemFamily * source_family,
IItemFamily * target_family,
const String & aname )
inline

Definition at line 194 of file ConnectivityNewWithDependenciesTypes.h.

◆ ~FaceToCellIncrementalItemConnectivity()

virtual Arcane::mesh::FaceToCellIncrementalItemConnectivity::~FaceToCellIncrementalItemConnectivity ( )
inlinevirtual

Definition at line 199 of file ConnectivityNewWithDependenciesTypes.h.

Member Function Documentation

◆ _addBackCellToFace()

void Arcane::mesh::FaceToCellIncrementalItemConnectivity::_addBackCellToFace ( ItemInternal * face,
ItemInternal * cell )
inlineprivate

Definition at line 258 of file ConnectivityNewWithDependenciesTypes.h.

◆ _addFrontCellToFace()

void Arcane::mesh::FaceToCellIncrementalItemConnectivity::_addFrontCellToFace ( ItemInternal * face,
ItemInternal * cell )
inlineprivate

Definition at line 224 of file ConnectivityNewWithDependenciesTypes.h.

◆ _removeConnectedItem()

void Arcane::mesh::FaceToCellIncrementalItemConnectivity::_removeConnectedItem ( ItemInternal * face,
ItemLocalId cell_to_remove_lid )
inlineprivate

AMR : todo later (go back to FaceFamily::removeCellFromFace)

Definition at line 331 of file ConnectivityNewWithDependenciesTypes.h.

References ARCANE_FATAL, Arcane::ItemBase::isSuppressed(), Arcane::mesh::IncrementalItemConnectivityBase::nbConnectedItem(), and Arcane::ItemBase::uniqueId().

Referenced by removeConnectedItem().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _setBackAndFrontCells()

void Arcane::mesh::FaceToCellIncrementalItemConnectivity::_setBackAndFrontCells ( ItemInternal * face,
ItemLocalId back_cell_lid,
ItemLocalId front_cell_lid )
inlineprivate

Definition at line 294 of file ConnectivityNewWithDependenciesTypes.h.

◆ addConnectedItem()

void Arcane::mesh::FaceToCellIncrementalItemConnectivity::addConnectedItem ( ItemLocalId source_item,
ItemLocalId target_local_id )
inlineoverridevirtual

Adds the entity with localId() target_local_id to the connectivity of source_item.

Implements Arcane::IIncrementalItemConnectivity.

Definition at line 206 of file ConnectivityNewWithDependenciesTypes.h.

◆ removeConnectedItem()

void Arcane::mesh::FaceToCellIncrementalItemConnectivity::removeConnectedItem ( ItemLocalId source_item,
ItemLocalId target_local_id )
inlineoverridevirtual

Removes the entity with localId() target_local_id from the connectivity of source_item.

Implements Arcane::IIncrementalItemConnectivity.

Definition at line 217 of file ConnectivityNewWithDependenciesTypes.h.

References _removeConnectedItem().

Here is the call graph for this function:

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