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

Abstract class for managing connectivities. More...

#include <arcane/mesh/IncrementalItemConnectivity.h>

Inheritance diagram for Arcane::mesh::AbstractIncrementalItemConnectivity:
Collaboration diagram for Arcane::mesh::AbstractIncrementalItemConnectivity:

Public Member Functions

 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 ()
Public Member Functions inherited from Arcane::IIncrementalItemConnectivity
virtual void addConnectedItem (ItemLocalId source_item, ItemLocalId target_local_id)=0
 Adds the entity with localId() target_local_id to the connectivity of source_item.
virtual void setConnectedItems (ItemLocalId source_item, Int32ConstArrayView target_local_ids)
 Allocates and positions entities connected to source_item.
virtual void removeConnectedItem (ItemLocalId source_item, ItemLocalId target_local_id)=0
 Removes the entity with localId() target_local_id from the connectivity of source_item.
virtual void removeConnectedItems (ItemLocalId source_item)=0
 Removes all entities connected to source_item.
virtual void replaceConnectedItem (ItemLocalId source_item, Integer index, ItemLocalId target_local_id)=0
 Replaces the entity at index index of source_item with the entity with localId() target_local_id.
virtual void replaceConnectedItems (ItemLocalId source_item, Int32ConstArrayView target_local_ids)=0
 Replaces the entities of source_item with the entities with localId() target_local_ids.
virtual bool hasConnectedItem (ItemLocalId source_item, ItemLocalId target_local_id) const =0
 Tests the existence of a connectivity between source_item and the entity with localId() target_local_id.
virtual Int32 maxNbConnectedItem () const =0
 Maximum number of entities connected to a source entity.
virtual Integer preAllocatedSize () const =0
 Number of entities pre-allocated for the connectivity of each entity.
virtual void setPreAllocatedSize (Integer value)=0
 Sets the number of entities to pre-allocate for the connectivity of each entity.
virtual void dumpStats (std::ostream &out) const =0
 Dumps statistics on usage and memory used to the stream out.
virtual IIncrementalItemConnectivityInternal_internalApi ()=0
 Internal Arcane API.
Public Member Functions inherited from Arcane::IItemConnectivityAccessor
virtual Integer nbConnectedItem (ItemLocalId lid) const =0
 Number of entities connected to the source entity with local ID lid.
virtual Int32 connectedItemLocalId (ItemLocalId lid, Integer index) const =0
 localId() of the index-th entity connected to the source entity with local ID lid
Public Member Functions inherited from Arcane::IIncrementalItemSourceConnectivity
virtual void notifySourceFamilyLocalIdChanged (Int32ConstArrayView new_to_old_ids)=0
 Notifies the connectivity that the source family has been compacted.
virtual void notifySourceItemAdded (ItemLocalId item)=0
 Notifies the connectivity that an entity has been added to the source family.
virtual void reserveMemoryForNbSourceItems (Int32 n, bool pre_alloc_connectivity)
 Reserves memory for n source entities.
virtual void notifyReadFromDump ()=0
 Notifies the connectivity that a read has been performed from a dump.
Public Member Functions inherited from Arcane::IIncrementalItemTargetConnectivity
virtual void notifyTargetFamilyLocalIdChanged (Int32ConstArrayView old_to_new_ids)=0
 Notifies the connectivity that the target family has been compacted.

Protected Member Functions

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 Member Functions inherited from Arcane::IItemConnectivityAccessor
virtual void _initializeStorage (ConnectivityItemVector *civ)=0
 Implements the initialization of civ for this connectivity.
virtual ItemVectorView _connectedItems (ItemLocalId item, ConnectivityItemVector &con_items) const =0
 Fills con_items with the entities connected to item.

Private Member Functions

 ARCCORE_DEFINE_REFERENCE_COUNTED_INCLASS_METHODS ()

Private Attributes

IItemFamilym_source_family
IItemFamilym_target_family
SharedArray< IItemFamily * > m_families
String m_name

Detailed Description

Abstract class for managing connectivities.

This class manages common information for all types of connectivity such as its name, source and target families, ...

Definition at line 53 of file IncrementalItemConnectivity.h.

Constructor & Destructor Documentation

◆ AbstractIncrementalItemConnectivity()

Arcane::mesh::AbstractIncrementalItemConnectivity::AbstractIncrementalItemConnectivity ( IItemFamily * source_family,
IItemFamily * target_family,
const String & connectivity_name )

Definition at line 63 of file IncrementalItemConnectivity.cc.

Member Function Documentation

◆ _families()

ConstArrayView< IItemFamily * > Arcane::mesh::AbstractIncrementalItemConnectivity::_families ( ) const
inlineprotected

Definition at line 81 of file IncrementalItemConnectivity.h.

◆ _sourceFamily()

IItemFamily * Arcane::mesh::AbstractIncrementalItemConnectivity::_sourceFamily ( ) const
inlineprotected

Definition at line 82 of file IncrementalItemConnectivity.h.

◆ _targetFamily()

IItemFamily * Arcane::mesh::AbstractIncrementalItemConnectivity::_targetFamily ( ) const
inlineprotected

Definition at line 83 of file IncrementalItemConnectivity.h.

◆ families()

ConstArrayView< IItemFamily * > Arcane::mesh::AbstractIncrementalItemConnectivity::families ( ) const
inlineoverridevirtual

◆ name()

String Arcane::mesh::AbstractIncrementalItemConnectivity::name ( ) const
inlinefinalvirtual

◆ sourceFamily()

IItemFamily * Arcane::mesh::AbstractIncrementalItemConnectivity::sourceFamily ( ) const
inlineoverridevirtual

Source family.

Implements Arcane::IIncrementalItemSourceConnectivity.

Definition at line 73 of file IncrementalItemConnectivity.h.

◆ targetFamily()

IItemFamily * Arcane::mesh::AbstractIncrementalItemConnectivity::targetFamily ( ) const
inlineoverridevirtual

Target family.

Implements Arcane::IIncrementalItemConnectivity.

Definition at line 74 of file IncrementalItemConnectivity.h.

◆ toSourceReference()

Ref< IIncrementalItemSourceConnectivity > Arcane::mesh::AbstractIncrementalItemConnectivity::toSourceReference ( )
overridevirtual

Returns a reference to the instance.

Implements Arcane::IIncrementalItemSourceConnectivity.

Definition at line 83 of file IncrementalItemConnectivity.cc.

References Arccore::makeRef().

Here is the call graph for this function:

◆ toTargetReference()

Ref< IIncrementalItemTargetConnectivity > Arcane::mesh::AbstractIncrementalItemConnectivity::toTargetReference ( )
overridevirtual

Returns a reference to the instance.

Implements Arcane::IIncrementalItemTargetConnectivity.

Definition at line 92 of file IncrementalItemConnectivity.cc.

References Arccore::makeRef().

Here is the call graph for this function:

Member Data Documentation

◆ m_families

SharedArray<IItemFamily*> Arcane::mesh::AbstractIncrementalItemConnectivity::m_families
private

Definition at line 89 of file IncrementalItemConnectivity.h.

◆ m_name

String Arcane::mesh::AbstractIncrementalItemConnectivity::m_name
private

Definition at line 90 of file IncrementalItemConnectivity.h.

◆ m_source_family

IItemFamily* Arcane::mesh::AbstractIncrementalItemConnectivity::m_source_family
private

Definition at line 87 of file IncrementalItemConnectivity.h.

◆ m_target_family

IItemFamily* Arcane::mesh::AbstractIncrementalItemConnectivity::m_target_family
private

Definition at line 88 of file IncrementalItemConnectivity.h.


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