Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
ComponentItemVector.cc
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2026 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7/*---------------------------------------------------------------------------*/
8/* ComponentItemVector.cc (C) 2000-2024 */
9/* */
10/* Vector over the entities of a component. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arcane/core/materials/ComponentItemVector.h"
15
16#include "arcane/core/materials/IMeshComponent.h"
17#include "arcane/core/materials/internal/IMeshComponentInternal.h"
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane::Materials
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
30: m_p(component->_internalApi()->createItemVectorImpl())
31{
32}
33
34/*---------------------------------------------------------------------------*/
35/*---------------------------------------------------------------------------*/
36
39: m_p(rhs.component()->_internalApi()->createItemVectorImpl(rhs))
40{
41}
42
43/*---------------------------------------------------------------------------*/
44/*---------------------------------------------------------------------------*/
45
46/*---------------------------------------------------------------------------*/
47/*---------------------------------------------------------------------------*/
48
49void ComponentItemVector::
50_setItems(SmallSpan<const Int32> local_ids)
51{
52 m_p->_setItems(local_ids);
53}
54
55/*---------------------------------------------------------------------------*/
56/*---------------------------------------------------------------------------*/
57
59view() const
60{
61 return m_p->_view();
62}
63
64/*---------------------------------------------------------------------------*/
65/*---------------------------------------------------------------------------*/
66
68pureItems() const
69{
70 return m_p->_pureItems();
71}
72
73/*---------------------------------------------------------------------------*/
74/*---------------------------------------------------------------------------*/
75
77impureItems() const
78{
79 return m_p->_impureItems();
80}
81
82/*---------------------------------------------------------------------------*/
83/*---------------------------------------------------------------------------*/
84
85ConstituentItemLocalIdListView ComponentItemVector::
86_constituentItemListView() const
87{
88 return m_p->_constituentItemListView();
89}
90
91/*---------------------------------------------------------------------------*/
92/*---------------------------------------------------------------------------*/
93
94ConstArrayView<MatVarIndex> ComponentItemVector::
95_matvarIndexes() const
96{
97 return m_p->_matvarIndexes();
98}
99
100/*---------------------------------------------------------------------------*/
101/*---------------------------------------------------------------------------*/
102
103ConstArrayView<Int32> ComponentItemVector::
104_localIds() const
105{
106 return m_p->_localIds();
107}
108
109/*---------------------------------------------------------------------------*/
110/*---------------------------------------------------------------------------*/
111
112IMeshMaterialMng* ComponentItemVector::
113_materialMng() const
114{
115 return m_p->_materialMng();
116}
117
118/*---------------------------------------------------------------------------*/
119/*---------------------------------------------------------------------------*/
120
121IMeshComponent* ComponentItemVector::
122_component() const
123{
124 return m_p->_component();
125}
126
127/*---------------------------------------------------------------------------*/
128/*---------------------------------------------------------------------------*/
129
130} // End namespace Arcane::Materials
131
132/*---------------------------------------------------------------------------*/
133/*---------------------------------------------------------------------------*/
Constant view of an array of type T.
View over a vector of entities of a component.
ComponentItemVectorView view() const
View of this vector.
IMeshComponent * component() const
Associated constituent.
ComponentItemVector(const ComponentItemVector &rhs)=default
Copy constructor. This instance then references rhs.
ComponentPurePartItemVectorView pureItems() const
List of pure entities (associated with the global cell) of the constituent.
ComponentImpurePartItemVectorView impureItems() const
List of impure (partial) entities of the constituent.
Interface of a component (material or environment) of a mesh.
Interface for the material and environment manager of a mesh.
View of an array of elements of type T.
Definition Span.h:805
Always enables tracing in Arcane parts concerning materials.