Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
CollectionsGlobal.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/* CollectionsGlobal.h (C) 2000-2025 */
9/* */
10/* Global definitions for the 'Collections' component of 'Arccore'. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCCORE_COLLECTIONS_COLLECTIONSGLOBAL_H
13#define ARCCORE_COLLECTIONS_COLLECTIONSGLOBAL_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18#include "arccore/common/CommonGlobal.h"
19
20/*---------------------------------------------------------------------------*/
21/*---------------------------------------------------------------------------*/
22
23#if defined(ARCCORE_COMPONENT_arccore_collections)
24#define ARCCORE_COLLECTIONS_EXPORT ARCCORE_EXPORT
25#define ARCCORE_COLLECTIONS_EXTERN_TPL
26#else
27#define ARCCORE_COLLECTIONS_EXPORT ARCCORE_IMPORT
28#define ARCCORE_COLLECTIONS_EXTERN_TPL extern
29#endif
30
31/*---------------------------------------------------------------------------*/
32/*---------------------------------------------------------------------------*/
33
34namespace Arcane
35{
36template <typename DataType> class Array2;
37template <typename DataType> class UniqueArray2;
38template <typename DataType> class SharedArray2;
39
40// The following three types are kept for compatibility with existing code.
41// They will need to be made optional mid-2025 and removed in 2026
42using IMemoryAllocator3 = IMemoryAllocator;
43using AlignedMemoryAllocator3 = AlignedMemoryAllocator;
44using DefaultMemoryAllocator3 = DefaultMemoryAllocator;
45} // namespace Arcane
46
47/*---------------------------------------------------------------------------*/
48/*---------------------------------------------------------------------------*/
49
50namespace Arcane
51{
53// TODO: To be deprecated (June 2025)
55} // namespace Arcane
56
57/*---------------------------------------------------------------------------*/
58/*---------------------------------------------------------------------------*/
59
60namespace Arccore
61{
62
63/*---------------------------------------------------------------------------*/
64/*---------------------------------------------------------------------------*/
65
68using Arcane::AlignedMemoryAllocator3;
70using Arcane::ARCCORE_NB_MEMORY_RESOURCE;
71using Arcane::Array;
72using Arcane::Array2;
75using Arcane::DefaultMemoryAllocator3;
80using Arcane::IMemoryAllocator3;
88
90// TODO: To be deprecated (June 2025)
92
93/*---------------------------------------------------------------------------*/
94/*---------------------------------------------------------------------------*/
95
96} // namespace Arccore
97
98/*---------------------------------------------------------------------------*/
99/*---------------------------------------------------------------------------*/
100
101#endif
Definitions and globals of Arccore.
Abstract base class for a vector.
Memory allocator with specific memory alignment.
Information about an allocated memory region.
Class representing a classic 2D array.
Array Metadata.
Base class for 1D data vectors.
Memory allocator via malloc/realloc/free.
Class containing information to specialize allocations.
Memory allocator via malloc/realloc/free with listing output.
Shared 2D data vector with reference semantics.
1D vector of data with reference semantics.
2D data vector with value semantics (STL style).
1D data vector with value semantics (STL style).
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
eMemoryLocationHint
Indices for expected memory location.
Arcane::eMemoryResource eMemoryRessource
Typedef for the historical Arcane version (with 2's').
eHostDeviceMemoryLocation
Physical location of a memory address.
eMemoryResource
List of available memory resources.
Namespace of Arccore.
Arcane::eMemoryResource eMemoryRessource
Typedef for the historical Arcane version (with 2's').