Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::Materials::ConstituentItemIndexedSelectionViewBase Class Reference

Base class for ConstituentItemIndexedSelectionView. More...

#include <arcane/core/materials/ConstituentItemIndexedSelectionView.h>

Inheritance diagram for Arcane::Materials::ConstituentItemIndexedSelectionViewBase:
Collaboration diagram for Arcane::Materials::ConstituentItemIndexedSelectionViewBase:

Public Types

using IndexArrayView = const SmallSpan<const Int32>

Public Member Functions

__host__ __device__ Int32 size () const
 number of selected EnvCells

Protected Member Functions

 ConstituentItemIndexedSelectionViewBase (SmallSpan< const Int32 > indices)
 ConstituentItemIndexedSelectionViewBase (IMeshComponent *constituent, Int32 selection_size)

Protected Attributes

SmallSpan< const Int32m_selection_view = {}
 Selection.

Detailed Description

Member Typedef Documentation

◆ IndexArrayView

using Arcane::Materials::ConstituentItemIndexedSelectionViewBase::IndexArrayView = const SmallSpan<const Int32>

Definition at line 136 of file ConstituentItemIndexedSelectionView.h.

Constructor & Destructor Documentation

◆ ConstituentItemIndexedSelectionViewBase()

Arcane::Materials::ConstituentItemIndexedSelectionViewBase::ConstituentItemIndexedSelectionViewBase ( IMeshComponent * constituent,
Int32 selection_size )
explicitprotected

Definition at line 38 of file ConstituentItemIndexedSelectionView.cc.

Member Function Documentation

◆ size()

__host__ __device__ Int32 Arcane::Materials::ConstituentItemIndexedSelectionViewBase::size ( ) const
inline

number of selected EnvCells

Definition at line 146 of file ConstituentItemIndexedSelectionView.h.

References m_selection_view.

Referenced by Arcane::Materials::ConstituentItemIndexedSelectionView< ComponentCellVectorView >::ConstituentItemIndexedSelectionView(), and Arcane::Materials::ConstituentItemIndexedSelectionView< ComponentCellVectorView >::ConstituentItemIndexedSelectionView().

Here is the caller graph for this function:

Member Data Documentation

◆ m_selection_view

SmallSpan<const Int32> Arcane::Materials::ConstituentItemIndexedSelectionViewBase::m_selection_view = {}
protected

Selection.

If this field is omitted during construction, the default will be a 'full' selection (i.e., all original elements, in the same order)

Definition at line 156 of file ConstituentItemIndexedSelectionView.h.

Referenced by size().


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