Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
ItemGroupRangeIterator.cc
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2022 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/* ItemGroupRangeIterator.cc (C) 2000-2022 */
9/* */
10/* Groupes d'entités du maillage. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arcane/utils/ArcanePrecomp.h"
15
16#include "arcane/ItemGroupRangeIterator.h"
17#include "arcane/ItemGroup.h"
18#include "arcane/ItemGroupImpl.h"
19
20/*---------------------------------------------------------------------------*/
21/*---------------------------------------------------------------------------*/
22
23namespace Arcane
24{
25
26/*---------------------------------------------------------------------------*/
27/*---------------------------------------------------------------------------*/
28
29ItemGroupRangeIterator::
30ItemGroupRangeIterator(const ItemGroup& group)
31: m_current(0)
32{
33 if (group.null()){
34 m_kind = IK_Unknown;
35 m_end = 0;
36 m_items_local_ids = nullptr;
37 return;
38 }
39 m_kind = group.itemKind();
40 ItemGroupImpl* igi = group.internal();
41 igi->checkNeedUpdate();
42 Int32ConstArrayView local_ids(igi->itemsLocalId());
43 m_end = local_ids.size();
44 m_items_local_ids = local_ids.data();
45 m_items = igi->itemInfoListView();
46}
47
48/*---------------------------------------------------------------------------*/
49/*---------------------------------------------------------------------------*/
50
51ItemGroupRangeIterator::
52ItemGroupRangeIterator()
53: m_kind(IK_Unknown)
54, m_current(0)
55, m_end(0)
56, m_items_local_ids(nullptr)
57{
58}
59
60/*---------------------------------------------------------------------------*/
61/*---------------------------------------------------------------------------*/
62
63} // End namespace Arcane
64
65/*---------------------------------------------------------------------------*/
66/*---------------------------------------------------------------------------*/
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
ConstArrayView< Int32 > Int32ConstArrayView
Equivalent C d'un tableau à une dimension d'entiers 32 bits.
Definition UtilsTypes.h:640
@ IK_Unknown
Entité de maillage de genre inconnu ou non initialisé