Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
ItemPairEnumerator.cc
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2023 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/* ItemPairEnumerator.cc (C) 2000-2023 */
9/* */
10/* Enumérateur sur un tableau de tableau d'entités du maillage. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arcane/ItemPairEnumerator.h"
15#include "arcane/ItemPairGroup.h"
16#include "arcane/IItemFamily.h"
17#include "arcane/ItemGroup.h"
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
28ItemPairEnumerator::
29ItemPairEnumerator(const ItemPairGroup& array)
30: m_current(0)
31, m_indexes(array.internal()->indexes())
32, m_items_local_id(array.itemGroup().internal()->itemsLocalId())
33, m_sub_items_local_id(array.internal()->subItemsLocalId())
34{
35 m_end = m_indexes.size() - 1;
36
37 ItemInfoListView items_view(array.internal()->itemFamily());
38 ItemInfoListView sub_items_view(array.internal()->subItemFamily());
39
40 m_items_shared_info = items_view.m_item_shared_info;
41 m_sub_items_shared_info = sub_items_view.m_item_shared_info;
42}
43
44/*---------------------------------------------------------------------------*/
45/*---------------------------------------------------------------------------*/
46
47} // namespace Arcane
48
49/*---------------------------------------------------------------------------*/
50/*---------------------------------------------------------------------------*/
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-