Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
MatItemVector.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/* MatItemVector.cc (C) 2000-2025 */
9/* */
10/* Vector over the entities of a material. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arcane/core/materials/MatItemVector.h"
15
17#include "arcane/core/materials/IMeshMaterialMng.h"
18#include "arcane/core/materials/ConstituentItemVectorBuildInfo.h"
19
20/*---------------------------------------------------------------------------*/
21/*---------------------------------------------------------------------------*/
22
23namespace Arcane::Materials
24{
25
26/*---------------------------------------------------------------------------*/
27/*---------------------------------------------------------------------------*/
28
34
35/*---------------------------------------------------------------------------*/
36/*---------------------------------------------------------------------------*/
37
43
44/*---------------------------------------------------------------------------*/
45/*---------------------------------------------------------------------------*/
46
52
53/*---------------------------------------------------------------------------*/
54/*---------------------------------------------------------------------------*/
55
59{
60 _build(build_info._localIds());
61}
62
63/*---------------------------------------------------------------------------*/
64/*---------------------------------------------------------------------------*/
65
66void MatCellVector::
67_build(SmallSpan<const Int32> local_ids)
68{
69 this->_setItems(local_ids);
70}
71
72/*---------------------------------------------------------------------------*/
73/*---------------------------------------------------------------------------*/
74
76material() const
77{
78 return static_cast<IMeshMaterial*>(component());
79}
80
81/*---------------------------------------------------------------------------*/
82/*---------------------------------------------------------------------------*/
83
84} // End namespace Arcane::Materials
85
86/*---------------------------------------------------------------------------*/
87/*---------------------------------------------------------------------------*/
IMeshComponent * component() const
Associated constituent.
ComponentItemVector(const ComponentItemVector &rhs)=default
Copy constructor. This instance then references rhs.
Construction options for 'ComponentItemVector' and.
IMeshMaterial * material() const
Associated material.
MatCellVectorView view() const
View of this vector.
MatCellVector(const CellGroup &group, IMeshMaterial *material)
Constructs a vector containing the entities of group for the material material.
View of an array of elements of type T.
Definition Span.h:805
ItemGroupT< Cell > CellGroup
Group of cells.
Definition ItemTypes.h:184
ItemVectorViewT< Cell > CellVectorView
View over a vector of cells.
Definition ItemTypes.h:305
Always enables tracing in Arcane parts concerning materials.