Arcane
4.1.12.0
User documentation
Loading...
Searching...
No Matches
DataAllocationInfo.h
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
/* DataAllocationInfo.h (C) 2000-2025 */
9
/* */
10
/* Data allocation information. */
11
/*---------------------------------------------------------------------------*/
12
#ifndef ARCANE_CORE_DATATYPE_DATAALLOCATIONINFO_H
13
#define ARCANE_CORE_DATATYPE_DATAALLOCATIONINFO_H
14
/*---------------------------------------------------------------------------*/
15
/*---------------------------------------------------------------------------*/
16
17
#include "
arcane/core/ArcaneTypes.h
"
18
19
/*---------------------------------------------------------------------------*/
20
/*---------------------------------------------------------------------------*/
21
22
namespace
Arcane
23
{
24
25
/*---------------------------------------------------------------------------*/
26
/*---------------------------------------------------------------------------*/
27
28
/*!
29
* \brief Information on data allocation.
30
*/
31
class
ARCANE_DATATYPE_EXPORT
DataAllocationInfo
32
{
33
public
:
34
35
//! Constructor.
36
DataAllocationInfo
() =
default
;
37
DataAllocationInfo
(
eMemoryLocationHint
hint)
38
: m_location_hint(hint)
39
{}
40
41
public
:
42
43
eMemoryLocationHint
memoryLocationHint()
const
{
return
m_location_hint; }
44
void
setMemoryLocationHint(eMemoryLocationHint hint) { m_location_hint = hint; }
45
46
public
:
47
48
friend
bool
operator==(
const
DataAllocationInfo& a,
const
DataAllocationInfo& b)
49
{
50
return
a.m_location_hint == b.m_location_hint;
51
}
52
53
private
:
54
55
eMemoryLocationHint
m_location_hint = eMemoryLocationHint::None;
56
};
57
58
/*---------------------------------------------------------------------------*/
59
/*---------------------------------------------------------------------------*/
60
61
}
// namespace Arcane
62
63
/*---------------------------------------------------------------------------*/
64
/*---------------------------------------------------------------------------*/
65
66
#endif
ArcaneTypes.h
Declarations of Arcane's general types.
Arcane::DataAllocationInfo::DataAllocationInfo
DataAllocationInfo()=default
Constructor.
Arcane
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Definition
AbstractCaseDocumentVisitor.cc:21
Arcane::eMemoryLocationHint
eMemoryLocationHint
Indices for expected memory location.
Definition
CommonGlobal.h:131
arcane
core
datatype
DataAllocationInfo.h
Generated on
for Arcane by
1.16.1