Skip to content

Commit f8a5112

Browse files
[arcane,accelerator] Ajoute typedef pour les vues sur les 'NumArray'.
1 parent 8a34744 commit f8a5112

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

arcane/src/arcane/accelerator/NumArrayViews.h

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
22
//-----------------------------------------------------------------------------
3-
// Copyright 2000-2022 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
3+
// Copyright 2000-2024 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
44
// See the top-level COPYRIGHT file for details.
55
// SPDX-License-Identifier: Apache-2.0
66
//-----------------------------------------------------------------------------
77
/*---------------------------------------------------------------------------*/
8-
/* NumArrayViews.h (C) 2000-2022 */
8+
/* NumArrayViews.h (C) 2000-2024 */
99
/* */
1010
/* Gestion des vues pour les 'NumArray' pour les accélérateurs. */
1111
/*---------------------------------------------------------------------------*/
@@ -196,6 +196,21 @@ viewIn(RunCommand& command, const NumArray<DataType, Extents, LayoutType>& v)
196196
/*---------------------------------------------------------------------------*/
197197
/*---------------------------------------------------------------------------*/
198198

199+
//! Vue en entrée sur un NumArray
200+
template <typename DataType, typename Extents, typename LayoutType = DefaultLayout>
201+
using NumArrayInView = NumArrayView<DataViewGetter<DataType>, Extents, LayoutType>;
202+
203+
//! Vue en sortie sur un NumArray
204+
template <typename DataType, typename Extents, typename LayoutType = DefaultLayout>
205+
using NumArrayOutView = NumArrayView<DataViewSetter<DataType>, Extents, LayoutType>;
206+
207+
//! Vue en entrée/sortie sur un NumArray
208+
template <typename DataType, typename Extents, typename LayoutType = DefaultLayout>
209+
using NumArrayInOutView = NumArrayView<DataViewGetterSetter<DataType>, Extents, LayoutType>;
210+
211+
/*---------------------------------------------------------------------------*/
212+
/*---------------------------------------------------------------------------*/
213+
199214
} // End namespace Arcane::Accelerator
200215

201216
/*---------------------------------------------------------------------------*/

0 commit comments

Comments
 (0)