Arcane  v3.14.10.0
Documentation utilisateur
Chargement...
Recherche...
Aucune correspondance
ItemPairGroupBuilder.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/* ItemPairGroupBuilder.cc (C) 2000-2021 */
9/* */
10/* Construction des listes des entités des ItemPairGroup. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arcane/utils/Array.h"
15
16#include "arcane/ItemPairGroupBuilder.h"
17
18/*---------------------------------------------------------------------------*/
19/*---------------------------------------------------------------------------*/
20
21namespace Arcane
22{
23
24/*---------------------------------------------------------------------------*/
25/*---------------------------------------------------------------------------*/
26
27ItemPairGroupBuilder::
28ItemPairGroupBuilder(const ItemPairGroup& group)
29: m_group(group)
30, m_index(0)
31, m_unguarded_indexes(m_group.internal()->unguardedIndexes())
32, m_unguarded_local_ids(m_group.internal()->unguardedLocalIds())
33{
34 m_unguarded_indexes.clear();
35 m_unguarded_local_ids.clear();
36 m_unguarded_indexes.add(0);
37}
38
39/*---------------------------------------------------------------------------*/
40/*---------------------------------------------------------------------------*/
41
42ItemPairGroupBuilder::
43~ItemPairGroupBuilder()
44{
45}
46
47/*---------------------------------------------------------------------------*/
48/*---------------------------------------------------------------------------*/
49
50void ItemPairGroupBuilder::
51addNextItem(Int32ConstArrayView sub_items)
52{
53 ++m_index;
54 m_unguarded_local_ids.addRange(sub_items);
55 m_unguarded_indexes.add(m_unguarded_local_ids.size());
56}
57
58/*---------------------------------------------------------------------------*/
59/*---------------------------------------------------------------------------*/
60
61} // End namespace Arcane
62
63/*---------------------------------------------------------------------------*/
64/*---------------------------------------------------------------------------*/
Vue constante d'un tableau de type T.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-