Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
Arcane::ItemGroupObserverWithInfoT< T > Class Template Reference

Public Member Functions

 ItemGroupObserverWithInfoT (T *object, typename FuncTraits< T >::FuncPtrWithInfo extend_funcptr, typename FuncTraits< T >::FuncPtrWithInfo reduce_funcptr, typename FuncTraits< T >::FuncPtrWithInfo compact_funcptr, typename FuncTraits< T >::FuncPtr invalidate_funcptr)
void executeExtend (const Int32ConstArrayView *info) override
 Execute the action associated with the extension.
void executeReduce (const Int32ConstArrayView *info) override
 Execute the action associated with the extension.
void executeCompact (const Int32ConstArrayView *info) override
 Executes the action associated with compaction.
void executeInvalidate () override
 Execute the action associated with invalidation.
bool needInfo () const override
 Indicates whether the observer will need transition information.
Public Member Functions inherited from Arcane::IItemGroupObserver
virtual ~IItemGroupObserver ()=default
 Destructor.

Detailed Description

template<typename T>
class Arcane::ItemGroupObserverWithInfoT< T >

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

Constructor & Destructor Documentation

◆ ItemGroupObserverWithInfoT()

template<typename T>
Arcane::ItemGroupObserverWithInfoT< T >::ItemGroupObserverWithInfoT ( T * object,
typename FuncTraits< T >::FuncPtrWithInfo extend_funcptr,
typename FuncTraits< T >::FuncPtrWithInfo reduce_funcptr,
typename FuncTraits< T >::FuncPtrWithInfo compact_funcptr,
typename FuncTraits< T >::FuncPtr invalidate_funcptr )
inline

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

Member Function Documentation

◆ executeCompact()

template<typename T>
void Arcane::ItemGroupObserverWithInfoT< T >::executeCompact ( const Int32ConstArrayView * info)
inlineoverridevirtual

Executes the action associated with compaction.

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

Implements Arcane::IItemGroupObserver.

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

◆ executeExtend()

template<typename T>
void Arcane::ItemGroupObserverWithInfoT< T >::executeExtend ( const Int32ConstArrayView * info)
inlineoverridevirtual

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.

Implements Arcane::IItemGroupObserver.

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

◆ executeInvalidate()

template<typename T>
void Arcane::ItemGroupObserverWithInfoT< T >::executeInvalidate ( )
inlineoverridevirtual

Execute the action associated with invalidation.

No transition information available.

Implements Arcane::IItemGroupObserver.

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

◆ executeReduce()

template<typename T>
void Arcane::ItemGroupObserverWithInfoT< T >::executeReduce ( const Int32ConstArrayView * info)
inlineoverridevirtual

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.

Implements Arcane::IItemGroupObserver.

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

◆ needInfo()

template<typename T>
bool Arcane::ItemGroupObserverWithInfoT< T >::needInfo ( ) const
inlineoverridevirtual

Indicates whether the observer will need transition information.

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

Implements Arcane::IItemGroupObserver.

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


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