@@ -199,7 +199,7 @@ class ARCANE_CORE_EXPORT ConstituentItemBase
199
199
// ! Première entité sous-composant.
200
200
inline ARCCORE_HOST_DEVICE ComponentItemInternalLocalId _firstSubItemLocalId () const ;
201
201
202
- inline ARCCORE_HOST_DEVICE ComponentItemInternal* _subItem (Int32 i) const ;
202
+ inline ARCCORE_HOST_DEVICE matimpl::ConstituentItemBase _subItemBase (Int32 i) const ;
203
203
204
204
// ! Positionne le nombre de sous-composants.
205
205
inline void _setNbSubItem (Int32 nb_sub_item);
@@ -383,10 +383,7 @@ class ARCANE_CORE_EXPORT ComponentItemInternal
383
383
return m_first_sub_component_item_local_id;
384
384
}
385
385
386
- ARCCORE_HOST_DEVICE ComponentItemInternal* _subItem (Int32 i) const
387
- {
388
- return &m_shared_info->m_component_item_internal_view [m_first_sub_component_item_local_id.localId () + i];
389
- }
386
+ ARCCORE_HOST_DEVICE matimpl::ConstituentItemBase _subItemBase (Int32 i) const ;
390
387
391
388
// ! Positionne le nombre de sous-composants.
392
389
void _setNbSubItem (Int32 nb_sub_item)
@@ -453,6 +450,19 @@ ConstituentItemBase(ComponentItemSharedInfo* shared_info, ComponentItemInternalL
453
450
{
454
451
}
455
452
453
+ /* ---------------------------------------------------------------------------*/
454
+ /* ---------------------------------------------------------------------------*/
455
+
456
+ inline ARCCORE_HOST_DEVICE matimpl::ConstituentItemBase ComponentItemInternal::
457
+ _subItemBase (Int32 i) const
458
+ {
459
+ ComponentItemInternalLocalId lid (m_first_sub_component_item_local_id.localId () + i);
460
+ return m_shared_info->_item (lid);
461
+ }
462
+
463
+ /* ---------------------------------------------------------------------------*/
464
+ /* ---------------------------------------------------------------------------*/
465
+
456
466
inline ARCCORE_HOST_DEVICE constexpr MatVarIndex matimpl::ConstituentItemBase::
457
467
variableIndex () const
458
468
{
@@ -532,10 +542,10 @@ _firstSubItemLocalId() const
532
542
return m_component_item->_firstSubItemLocalId ();
533
543
}
534
544
535
- inline ARCCORE_HOST_DEVICE ComponentItemInternal* matimpl::ConstituentItemBase::
536
- _subItem (Int32 i) const
545
+ inline ARCCORE_HOST_DEVICE matimpl::ConstituentItemBase matimpl::ConstituentItemBase::
546
+ _subItemBase (Int32 i) const
537
547
{
538
- return m_component_item->_subItem (i);
548
+ return m_component_item->_subItemBase (i);
539
549
}
540
550
541
551
// ! Positionne le nombre de sous-composants.
0 commit comments