Interface for the source of an incremental connectivity. More...
#include <arcane/core/IIncrementalItemConnectivity.h>
Public Member Functions | |
| virtual IItemFamily * | sourceFamily () const =0 |
| Source family. | |
| 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. | |
| virtual Ref< IIncrementalItemSourceConnectivity > | toSourceReference ()=0 |
| Returns a reference to the instance. | |
Private Member Functions | |
| ARCCORE_DECLARE_REFERENCE_COUNTED_INCLASS_METHODS () | |
| virtual void | _internalNotifySourceItemsAdded (Int32ConstArrayView items) |
| Notifies the connectivity that the entities items have been added to the source family. | |
Interface for the source of an incremental connectivity.
Definition at line 34 of file IIncrementalItemConnectivity.h.
|
privatevirtual |
Notifies the connectivity that the entities items have been added to the source family.
Definition at line 251 of file InterfaceImpl.cc.
References notifySourceItemAdded().
Referenced by toSourceReference().
|
pure virtual |
Notifies the connectivity that a read has been performed from a dump.
Implemented in Arcane::Materials::ConstituentConnectivityList, Arcane::Materials::ConstituentConnectivityList, Arcane::mesh::IncrementalItemConnectivity, Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, LegacyType, CustomType >, Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, typename LegacyConnectivityTraitsT< TargetFamily >::type >, and Arcane::mesh::OneItemIncrementalItemConnectivity.
|
pure virtual |
Notifies the connectivity that the source family has been compacted.
Implemented in Arcane::Materials::ConstituentConnectivityList, Arcane::Materials::ConstituentConnectivityList, Arcane::mesh::IncrementalItemConnectivityBase, Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, LegacyType, CustomType >, Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, typename LegacyConnectivityTraitsT< TargetFamily >::type >, and Arcane::mesh::OneItemIncrementalItemConnectivity.
|
pure virtual |
Notifies the connectivity that an entity has been added to the source family.
Implemented in Arcane::Materials::ConstituentConnectivityList, Arcane::Materials::ConstituentConnectivityList, Arcane::mesh::IncrementalItemConnectivity, Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, LegacyType, CustomType >, Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, typename LegacyConnectivityTraitsT< TargetFamily >::type >, and Arcane::mesh::OneItemIncrementalItemConnectivity.
References reserveMemoryForNbSourceItems().
Referenced by _internalNotifySourceItemsAdded().
|
virtual |
Reserves memory for n source entities.
Calling this method is optional but prevents multiple reallocations during successive calls to notifySourceItemAdded().
If pre_alloc_connectivity is true, it also pre-allocates the list of connectivities based on the value of preAllocatedSize(). For example, if preAllocatedSize() is 4 and n is 10000, we will pre-allocate for 40000 connectivities. To avoid unnecessary memory overconsumption, connectivities should only be pre-allocated if we are sure we will use them.
Reimplemented in Arcane::Materials::ConstituentConnectivityList, Arcane::Materials::ConstituentConnectivityList, and Arcane::mesh::IncrementalItemConnectivityBase.
Definition at line 242 of file InterfaceImpl.cc.
Referenced by notifySourceItemAdded().
|
pure virtual |
Source family.
Implemented in Arcane::Materials::ConstituentConnectivityList, Arcane::Materials::ConstituentConnectivityList, Arcane::mesh::AbstractIncrementalItemConnectivity, Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, LegacyType, CustomType >, and Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, typename LegacyConnectivityTraitsT< TargetFamily >::type >.
Referenced by Arcane::mesh::IndexedIncrementalItemConnectivityMng::findOrCreateConnectivity(), Arcane::ItemConnectivityMng::isUpToDateWithSourceFamily(), Arcane::mesh::ItemFamily::removeNeedRemoveMarkedItems(), and Arcane::ItemConnectivityMng::setUpToDate().
|
pure virtual |
Returns a reference to the instance.
Implemented in Arcane::Materials::ConstituentConnectivityList, Arcane::Materials::ConstituentConnectivityList, Arcane::mesh::AbstractIncrementalItemConnectivity, Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, LegacyType, CustomType >, and Arcane::mesh::NewWithLegacyConnectivity< SourceFamily, TargetFamily, typename LegacyConnectivityTraitsT< TargetFamily >::type >.
References _internalNotifySourceItemsAdded().