Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
Arcane::IItemGroupObserver Class Referenceabstract

Classes

struct  FuncTraits

Public Member Functions

virtual ~IItemGroupObserver ()=default
 Destructor.
virtual void executeExtend (const Int32ConstArrayView *info)=0
 Execute the action associated with the extension.
virtual void executeReduce (const Int32ConstArrayView *info)=0
 Execute the action associated with the extension.
virtual void executeCompact (const Int32ConstArrayView *info)=0
 Executes the action associated with compaction.
virtual void executeInvalidate ()=0
 Execute the action associated with invalidation.
virtual bool needInfo () const =0
 Indicates whether the observer will need transition information.

Detailed Description

Definition at line 28 of file core/ItemGroupObserver.h.

Member Function Documentation

◆ executeCompact()

virtual void Arcane::IItemGroupObserver::executeCompact ( const Int32ConstArrayView * info)
pure virtual

Executes the action associated with compaction.

Parameters
infolist of permutations in the old->new direction Assumes there is no change in size.

Implemented in Arcane::ItemGroupObserverWithInfoT< T >, Arcane::ItemGroupObserverWithoutInfoT< T >, Arcane::ItemGroupPartialVariableObserver, and Arcane::Materials::MeshEnvironmentObserver.

◆ executeExtend()

virtual void Arcane::IItemGroupObserver::executeExtend ( const Int32ConstArrayView * info)
pure virtual

Execute the action associated with the extension.

Parameters
infolist of added localIds Assumes there is no change in order or renumbering.

This method cannot be parallel.

Implemented in Arcane::ItemGroupObserverWithInfoT< T >, Arcane::ItemGroupObserverWithoutInfoT< T >, Arcane::ItemGroupPartialVariableObserver, and Arcane::Materials::MeshEnvironmentObserver.

◆ executeInvalidate()

virtual void Arcane::IItemGroupObserver::executeInvalidate ( )
pure virtual

Execute the action associated with invalidation.

No transition information available.

Implemented in Arcane::ItemGroupObserverWithInfoT< T >, Arcane::ItemGroupObserverWithoutInfoT< T >, Arcane::ItemGroupPartialVariableObserver, and Arcane::Materials::MeshEnvironmentObserver.

◆ executeReduce()

virtual void Arcane::IItemGroupObserver::executeReduce ( const Int32ConstArrayView * info)
pure virtual

Execute the action associated with the extension.

Parameters
infolist of positions removed in the old group Assumes there is no change in order or renumbering This approach compared to the list of localIds is motivated by the constraint in PartialVariable which is unaware of the localIds it hosts.
info2list of localIds of deleted elements. Potentially redundant with info, but inevitable for certain structures changing the order relative to the reference group (e.g.: ItemGroupDynamicMeshObserver) (DEPRECATED)

This method cannot be parallel.

Implemented in Arcane::ItemGroupObserverWithInfoT< T >, Arcane::ItemGroupObserverWithoutInfoT< T >, Arcane::ItemGroupPartialVariableObserver, and Arcane::Materials::MeshEnvironmentObserver.

◆ needInfo()

virtual bool Arcane::IItemGroupObserver::needInfo ( ) const
pure virtual

Indicates whether the observer will need transition information.

This information must not change after the first call to this function

Implemented in Arcane::ItemGroupObserverWithInfoT< T >, Arcane::ItemGroupObserverWithoutInfoT< T >, Arcane::ItemGroupPartialVariableObserver, and Arcane::Materials::MeshEnvironmentObserver.

Referenced by Arcane::ItemGroupImpl::attachObserver(), and Arcane::ItemGroupImpl::detachObserver().


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