Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
DataAllocationInfo.h
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/* DataAllocationInfo.h (C) 2000-2023 */
9/* */
10/* Informations sur l'allocation d'une donnée. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_DATATYPES_DATAALLOCATIONINFO_H
13#define ARCANE_DATATYPES_DATAALLOCATIONINFO_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/ArcaneTypes.h"
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
30class ARCANE_DATATYPE_EXPORT DataAllocationInfo
31{
32 public:
33
35 DataAllocationInfo() = default;
36 DataAllocationInfo(eMemoryLocationHint hint)
37 : m_location_hint(hint)
38 {}
39
40 public:
41
42 eMemoryLocationHint memoryLocationHint() const { return m_location_hint; }
43 void setMemoryLocationHint(eMemoryLocationHint hint) { m_location_hint = hint; }
44
45 public:
46
47 friend bool operator==(const DataAllocationInfo& a, const DataAllocationInfo& b)
48 {
49 return a.m_location_hint == b.m_location_hint;
50 }
51
52 private:
53
54 eMemoryLocationHint m_location_hint = eMemoryLocationHint::None;
55};
56
57/*---------------------------------------------------------------------------*/
58/*---------------------------------------------------------------------------*/
59
60} // namespace Arcane
61
62/*---------------------------------------------------------------------------*/
63/*---------------------------------------------------------------------------*/
64
65#endif
Informations sur l'allocation d'une donnée.
DataAllocationInfo()=default
Constructeur.
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition Lima.cc:120
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
eMemoryLocationHint
Indices sur la localisation mémoire attendue.