Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
EnvItemVector.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/* EnvItemVector.cc (C) 2000-2025 */
9/* */
10/* Vector over the entities of a medium. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arcane/core/materials/EnvItemVector.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
53
54/*---------------------------------------------------------------------------*/
55/*---------------------------------------------------------------------------*/
56
63
64/*---------------------------------------------------------------------------*/
65/*---------------------------------------------------------------------------*/
66
67/*---------------------------------------------------------------------------*/
68/*---------------------------------------------------------------------------*/
69
70void EnvCellVector::
71_build(SmallSpan<const Int32> local_ids)
72{
73 this->_setItems(local_ids);
74}
75
76/*---------------------------------------------------------------------------*/
77/*---------------------------------------------------------------------------*/
78
80environment() const
81{
82 return static_cast<IMeshEnvironment*>(component());
83}
84
85/*---------------------------------------------------------------------------*/
86/*---------------------------------------------------------------------------*/
87
88} // End namespace Arcane::Materials
89
90/*---------------------------------------------------------------------------*/
91/*---------------------------------------------------------------------------*/
IMeshComponent * component() const
Associated constituent.
ComponentItemVector(const ComponentItemVector &rhs)=default
Copy constructor. This instance then references rhs.
Construction options for 'ComponentItemVector' and.
IMeshEnvironment * environment() const
Associated environment.
EnvCellVector(const CellGroup &group, IMeshEnvironment *environment)
Constructs a vector containing the entities of group for the environment environment.
EnvCellVectorView view() const
View of this vector.
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.