Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, LegacyType, CustomType > Class Template Reference

class holding a new connectivity but also filling the legacy one Both custom and legacy connectivities of ItemConnectivitySelector are built. More...

#include <arcane/mesh/NewWithLegacyConnectivity.h>

Inheritance diagram for Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, LegacyType, CustomType >:
Collaboration diagram for Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, LegacyType, CustomType >:

Public Types

typedef ItemConnectivitySelectorT< LegacyType, CustomType > Base

Public Member Functions

 NewWithLegacyConnectivity (ItemFamily *source_family, IItemFamily *target_family, const String &name)
String name () const override
 Name of the connectivity.
bool isEmpty () const
ConstArrayView< IItemFamily * > families () const override
 List of families (sourceFamily() + targetFamily()).
IItemFamilysourceFamily () const override
 Source family.
IItemFamilytargetFamily () const override
 Target family.
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 removeConnectedItems (ItemLocalId source_item) override
 Removes all entities connected to 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 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.
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 from a dump has been performed.
Integer preAllocatedSize () const override
 Number of pre-allocated entities for the connectivity of each entity.
void setPreAllocatedSize (Integer value) override
 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.
Integer nbConnectedItem (ItemLocalId lid) const override
 Number of entities connected to the source entity with local number lid.
Int32 connectedItemLocalId (ItemLocalId lid, Integer index) const override
 localId() of the index-th entity connected to the source entity with local number lid
Int32 maxNbConnectedItem () const override
 Maximum number of entities connected to a source entity.
Ref< IIncrementalItemSourceConnectivitytoSourceReference () override
 Returns a reference to the instance.
Ref< IIncrementalItemTargetConnectivitytoTargetReference () override
 Returns a reference to the instance.
IIncrementalItemConnectivityInternal_internalApi () override
 Internal Arcane API.
Public Member Functions inherited from Arcane::mesh::ItemConnectivitySelectorT< LegacyType, IncrementalItemConnectivity >
 ItemConnectivitySelectorT (ItemFamily *source_family, IItemFamily *target_family, const String &connectivity_name)
IIncrementalItemConnectivitycustomConnectivity () const override
void checkValidConnectivityList () const override
void compactConnectivities () override
void addConnectedItem (ItemLocalId item_lid, ItemLocalId sub_item_lid)
void removeConnectedItem (ItemLocalId item_lid, ItemLocalId sub_item_lid)
void removeConnectedItems (ItemLocalId item_lid)
void replaceItems (ItemLocalId item_lid, Int32ConstArrayView sub_item_lids)
void replaceItem (ItemLocalId item_lid, Integer index, ItemLocalId sub_item_lid)
bool hasConnectedItem (ItemLocalId source_item, ItemLocalId target_local_id) const
IncrementalItemConnectivitytrueCustomConnectivity () const
void build ()
Public Member Functions inherited from Arcane::mesh::ItemConnectivitySelector
 ItemConnectivitySelector (ItemFamily *source_family, IItemFamily *target_family, const String &connectivity_name, Integer connectivity_index)
virtual IIncrementalItemConnectivitylegacyConnectivity () const
virtual void updateItemConnectivityList (Int32ConstArrayView) const
void setPreAllocatedSize (Integer size)
Integer preAllocatedSize () const
Int32 itemConnectivityIndex () const
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 setConnectedItems (ItemLocalId source_item, Int32ConstArrayView target_local_ids)
 Allocates and positions entities connected to source_item.
Public Member Functions inherited from Arcane::IIncrementalItemSourceConnectivity
virtual void reserveMemoryForNbSourceItems (Int32 n, bool pre_alloc_connectivity)
 Reserves memory for n source entities.

Protected Member Functions

void _initializeStorage (ConnectivityItemVector *civ) override
 Implements the initialization of civ for this connectivity.
ItemVectorView _connectedItems (ItemLocalId item, ConnectivityItemVector &con_items) const override
 Fills con_items with the entities connected to item.
Protected Member Functions inherited from Arcane::mesh::ItemConnectivitySelectorT< LegacyType, IncrementalItemConnectivity >
void _createCustomConnectivity (const String &name) override
void _buildCustomConnectivity () override
Protected Member Functions inherited from Arcane::TraceAccessor
void _setLocalVerboseLevel (Int32 v)
Int32 _localVerboseLevel () const

Private Member Functions

 ARCCORE_DEFINE_REFERENCE_COUNTED_INCLASS_METHODS ()

Friends

class ConnectivityItemVector

Additional Inherited Members

Protected Attributes inherited from Arcane::mesh::ItemConnectivitySelector
ItemFamilym_source_family
IItemFamilym_target_family
String m_connectivity_name
Integer m_pre_allocated_size
Int32 m_item_connectivity_index
ItemInternalConnectivityListm_item_connectivity_list
bool m_is_built

Detailed Description

template<class SourceFamily, class TargetFamily, class LegacyType, class CustomType = IncrementalItemConnectivity>
class Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, LegacyType, CustomType >

class holding a new connectivity but also filling the legacy one Both custom and legacy connectivities of ItemConnectivitySelector are built.

Definition at line 47 of file NewWithLegacyConnectivity.h.

Member Typedef Documentation

◆ Base

template<class SourceFamily, class TargetFamily, class LegacyType, class CustomType = IncrementalItemConnectivity>
typedef ItemConnectivitySelectorT<LegacyType, CustomType> Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, LegacyType, CustomType >::Base

Definition at line 67 of file NewWithLegacyConnectivity.h.

Constructor & Destructor Documentation

◆ NewWithLegacyConnectivity()

template<class SourceFamily, class TargetFamily, class LegacyType, class CustomType = IncrementalItemConnectivity>
Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, LegacyType, CustomType >::NewWithLegacyConnectivity ( ItemFamily * source_family,
IItemFamily * target_family,
const String & name )
inline

Definition at line 60 of file NewWithLegacyConnectivity.h.

Member Function Documentation

◆ _connectedItems()

template<class SourceFamily, class TargetFamily, class LegacyType, class CustomType = IncrementalItemConnectivity>
ItemVectorView Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, LegacyType, CustomType >::_connectedItems ( ItemLocalId item,
ConnectivityItemVector & con_items ) const
inlineoverrideprotectedvirtual

Fills con_items with the entities connected to item.

Implements Arcane::IItemConnectivityAccessor.

Definition at line 156 of file NewWithLegacyConnectivity.h.

◆ _initializeStorage()

template<class SourceFamily, class TargetFamily, class LegacyType, class CustomType = IncrementalItemConnectivity>
void Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, LegacyType, CustomType >::_initializeStorage ( ConnectivityItemVector * civ)
inlineoverrideprotectedvirtual

Implements the initialization of civ for this connectivity.

Implements Arcane::IItemConnectivityAccessor.

Definition at line 153 of file NewWithLegacyConnectivity.h.

◆ _internalApi()

template<class SourceFamily, class TargetFamily, class LegacyType, class CustomType = IncrementalItemConnectivity>
IIncrementalItemConnectivityInternal * Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, LegacyType, CustomType >::_internalApi ( )
inlineoverridevirtual

◆ addConnectedItem()

template<class SourceFamily, class TargetFamily, class LegacyType, class CustomType = IncrementalItemConnectivity>
void Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, LegacyType, CustomType >::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 86 of file NewWithLegacyConnectivity.h.

◆ connectedItemLocalId()

template<class SourceFamily, class TargetFamily, class LegacyType, class CustomType = IncrementalItemConnectivity>
Int32 Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, LegacyType, CustomType >::connectedItemLocalId ( ItemLocalId lid,
Integer index ) const
inlineoverridevirtual

localId() of the index-th entity connected to the source entity with local number lid

Implements Arcane::IItemConnectivityAccessor.

Definition at line 132 of file NewWithLegacyConnectivity.h.

◆ dumpStats()

template<class SourceFamily, class TargetFamily, class LegacyType, class CustomType = IncrementalItemConnectivity>
void Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, LegacyType, CustomType >::dumpStats ( std::ostream & out) const
inlineoverridevirtual

Dumps statistics on usage and memory used to the stream out.

Implements Arcane::IIncrementalItemConnectivity.

Definition at line 126 of file NewWithLegacyConnectivity.h.

◆ families()

template<class SourceFamily, class TargetFamily, class LegacyType, class CustomType = IncrementalItemConnectivity>
ConstArrayView< IItemFamily * > Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, LegacyType, CustomType >::families ( ) const
inlineoverridevirtual

◆ hasConnectedItem()

template<class SourceFamily, class TargetFamily, class LegacyType, class CustomType = IncrementalItemConnectivity>
bool Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, LegacyType, CustomType >::hasConnectedItem ( ItemLocalId source_item,
ItemLocalId target_local_id ) const
inlineoverridevirtual

Tests the existence of a connectivity between source_item and the entity with localId() target_local_id.

Implements Arcane::IIncrementalItemConnectivity.

Definition at line 103 of file NewWithLegacyConnectivity.h.

◆ isEmpty()

template<class SourceFamily, class TargetFamily, class LegacyType, class CustomType = IncrementalItemConnectivity>
bool Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, LegacyType, CustomType >::isEmpty ( ) const
inline

Definition at line 71 of file NewWithLegacyConnectivity.h.

◆ maxNbConnectedItem()

template<class SourceFamily, class TargetFamily, class LegacyType, class CustomType = IncrementalItemConnectivity>
Int32 Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, LegacyType, CustomType >::maxNbConnectedItem ( ) const
inlineoverridevirtual

Maximum number of entities connected to a source entity.

Implements Arcane::IIncrementalItemConnectivity.

Definition at line 135 of file NewWithLegacyConnectivity.h.

◆ name()

template<class SourceFamily, class TargetFamily, class LegacyType, class CustomType = IncrementalItemConnectivity>
String Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, LegacyType, CustomType >::name ( ) const
inlineoverridevirtual

Name of the connectivity.

Implements Arcane::IIncrementalItemConnectivity.

Definition at line 69 of file NewWithLegacyConnectivity.h.

◆ nbConnectedItem()

template<class SourceFamily, class TargetFamily, class LegacyType, class CustomType = IncrementalItemConnectivity>
Integer Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, LegacyType, CustomType >::nbConnectedItem ( ItemLocalId lid) const
inlineoverridevirtual

Number of entities connected to the source entity with local number lid.

Implements Arcane::IItemConnectivityAccessor.

Definition at line 129 of file NewWithLegacyConnectivity.h.

◆ notifyReadFromDump()

template<class SourceFamily, class TargetFamily, class LegacyType, class CustomType = IncrementalItemConnectivity>
void Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, LegacyType, CustomType >::notifyReadFromDump ( )
inlineoverridevirtual

Notifies the connectivity that a read from a dump has been performed.

Implements Arcane::IIncrementalItemSourceConnectivity.

Definition at line 117 of file NewWithLegacyConnectivity.h.

◆ notifySourceFamilyLocalIdChanged()

template<class SourceFamily, class TargetFamily, class LegacyType, class CustomType = IncrementalItemConnectivity>
void Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, LegacyType, CustomType >::notifySourceFamilyLocalIdChanged ( Int32ConstArrayView new_to_old_ids)
inlineoverridevirtual

Notifies the connectivity that the source family has been compacted.

Implements Arcane::IIncrementalItemSourceConnectivity.

Definition at line 107 of file NewWithLegacyConnectivity.h.

◆ notifySourceItemAdded()

template<class SourceFamily, class TargetFamily, class LegacyType, class CustomType = IncrementalItemConnectivity>
void Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, LegacyType, CustomType >::notifySourceItemAdded ( ItemLocalId item)
inlineoverridevirtual

Notifies the connectivity that an entity has been added to the source family.

Implements Arcane::IIncrementalItemSourceConnectivity.

Definition at line 114 of file NewWithLegacyConnectivity.h.

◆ notifyTargetFamilyLocalIdChanged()

template<class SourceFamily, class TargetFamily, class LegacyType, class CustomType = IncrementalItemConnectivity>
void Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, LegacyType, CustomType >::notifyTargetFamilyLocalIdChanged ( Int32ConstArrayView old_to_new_ids)
inlineoverridevirtual

Notifies the connectivity that the target family has been compacted.

Implements Arcane::IIncrementalItemTargetConnectivity.

Definition at line 111 of file NewWithLegacyConnectivity.h.

◆ preAllocatedSize()

template<class SourceFamily, class TargetFamily, class LegacyType, class CustomType = IncrementalItemConnectivity>
Integer Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, LegacyType, CustomType >::preAllocatedSize ( ) const
inlineoverridevirtual

Number of pre-allocated entities for the connectivity of each entity.

Implements Arcane::IIncrementalItemConnectivity.

Definition at line 120 of file NewWithLegacyConnectivity.h.

◆ removeConnectedItem()

template<class SourceFamily, class TargetFamily, class LegacyType, class CustomType = IncrementalItemConnectivity>
void Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, LegacyType, CustomType >::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 89 of file NewWithLegacyConnectivity.h.

◆ removeConnectedItems()

template<class SourceFamily, class TargetFamily, class LegacyType, class CustomType = IncrementalItemConnectivity>
void Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, LegacyType, CustomType >::removeConnectedItems ( ItemLocalId source_item)
inlineoverridevirtual

Removes all entities connected to source_item.

Implements Arcane::IIncrementalItemConnectivity.

Definition at line 92 of file NewWithLegacyConnectivity.h.

◆ replaceConnectedItem()

template<class SourceFamily, class TargetFamily, class LegacyType, class CustomType = IncrementalItemConnectivity>
void Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, LegacyType, CustomType >::replaceConnectedItem ( ItemLocalId source_item,
Integer index,
ItemLocalId target_local_id )
inlineoverridevirtual

Replaces the entity at index index of source_item with the entity with localId() target_local_id.

Implements Arcane::IIncrementalItemConnectivity.

Definition at line 96 of file NewWithLegacyConnectivity.h.

◆ replaceConnectedItems()

template<class SourceFamily, class TargetFamily, class LegacyType, class CustomType = IncrementalItemConnectivity>
void Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, LegacyType, CustomType >::replaceConnectedItems ( ItemLocalId source_item,
Int32ConstArrayView target_local_ids )
inlineoverridevirtual

Replaces the entities of source_item with the entities with localId() target_local_ids.

Implements Arcane::IIncrementalItemConnectivity.

Definition at line 100 of file NewWithLegacyConnectivity.h.

◆ setPreAllocatedSize()

template<class SourceFamily, class TargetFamily, class LegacyType, class CustomType = IncrementalItemConnectivity>
void Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, LegacyType, CustomType >::setPreAllocatedSize ( Integer value)
inlineoverridevirtual

Sets the number of entities to pre-allocate for the connectivity of each entity.

Implements Arcane::IIncrementalItemConnectivity.

Definition at line 123 of file NewWithLegacyConnectivity.h.

◆ sourceFamily()

template<class SourceFamily, class TargetFamily, class LegacyType, class CustomType = IncrementalItemConnectivity>
IItemFamily * Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, LegacyType, CustomType >::sourceFamily ( ) const
inlineoverridevirtual

Source family.

Implements Arcane::IIncrementalItemSourceConnectivity.

Definition at line 80 of file NewWithLegacyConnectivity.h.

◆ targetFamily()

template<class SourceFamily, class TargetFamily, class LegacyType, class CustomType = IncrementalItemConnectivity>
IItemFamily * Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, LegacyType, CustomType >::targetFamily ( ) const
inlineoverridevirtual

Target family.

Implements Arcane::IIncrementalItemConnectivity.

Definition at line 83 of file NewWithLegacyConnectivity.h.

◆ toSourceReference()

template<class SourceFamily, class TargetFamily, class LegacyType, class CustomType = IncrementalItemConnectivity>
Ref< IIncrementalItemSourceConnectivity > Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, LegacyType, CustomType >::toSourceReference ( )
inlineoverridevirtual

Returns a reference to the instance.

Implements Arcane::IIncrementalItemSourceConnectivity.

Definition at line 137 of file NewWithLegacyConnectivity.h.

◆ toTargetReference()

template<class SourceFamily, class TargetFamily, class LegacyType, class CustomType = IncrementalItemConnectivity>
Ref< IIncrementalItemTargetConnectivity > Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, LegacyType, CustomType >::toTargetReference ( )
inlineoverridevirtual

Returns a reference to the instance.

Implements Arcane::IIncrementalItemTargetConnectivity.

Definition at line 141 of file NewWithLegacyConnectivity.h.

◆ ConnectivityItemVector

template<class SourceFamily, class TargetFamily, class LegacyType, class CustomType = IncrementalItemConnectivity>
friend class ConnectivityItemVector
friend

Definition at line 56 of file NewWithLegacyConnectivity.h.


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