Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
ViewsCommon.h
Go to the documentation of this file.
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/* ViewsCommon.h (C) 2000-2024 */
9/* */
10/* Base types for view management for accelerators. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_ACCELERATOR_VIEWSCOMMON_H
13#define ARCANE_ACCELERATOR_VIEWSCOMMON_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/accelerator/AcceleratorGlobal.h"
18
19#include "arcane/core/DataView.h"
20#include "arcane/accelerator/core/ViewBuildInfo.h"
21
22/*---------------------------------------------------------------------------*/
23/*---------------------------------------------------------------------------*/
24
25/*!
26 * \file ViewsCommon.h
27 *
28 * This file contains the type declarations to manage
29 * views for accelerators.
30 */
31
32/*---------------------------------------------------------------------------*/
33/*---------------------------------------------------------------------------*/
34
35namespace Arcane::Accelerator
36{
37
38/*---------------------------------------------------------------------------*/
39/*---------------------------------------------------------------------------*/
40
41template <typename DataType> using DataViewSetter = Arcane::DataViewSetter<DataType>;
42template <typename DataType> using DataViewGetterSetter = Arcane::DataViewGetterSetter<DataType>;
43template <typename DataType> using DataViewGetter = Arcane::DataViewGetter<DataType>;
44
45/*---------------------------------------------------------------------------*/
46/*---------------------------------------------------------------------------*/
47
48} // namespace Arcane::Accelerator
49
50/*---------------------------------------------------------------------------*/
51/*---------------------------------------------------------------------------*/
52
53#endif
Namespace for accelerator usage.