Arcane
4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
SubDomainBuildInfo.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
/* SubDomainBuildInfo.h (C) 2000-2025 */
9
/* */
10
/* Information for building a subdomain. */
11
/*---------------------------------------------------------------------------*/
12
#ifndef ARCANE_CORE_SUBDOMAINBUILDINFO_H
13
#define ARCANE_CORE_SUBDOMAINBUILDINFO_H
14
/*---------------------------------------------------------------------------*/
15
/*---------------------------------------------------------------------------*/
16
17
#include "arcane/utils/String.h"
18
#include "arcane/utils/Array.h"
19
#include "arcane/utils/Ref.h"
20
#include "
arcane/core/Parallel.h
"
21
22
/*---------------------------------------------------------------------------*/
23
/*---------------------------------------------------------------------------*/
24
25
namespace
Arcane
26
{
27
28
/*---------------------------------------------------------------------------*/
29
/*---------------------------------------------------------------------------*/
30
31
class
IParallelMng
;
32
33
/*---------------------------------------------------------------------------*/
34
/*---------------------------------------------------------------------------*/
35
53
class
ARCANE_CORE_EXPORT SubDomainBuildInfo
54
{
55
public
:
56
57
SubDomainBuildInfo(
Ref<IParallelMng>
pm,
Int32
index);
58
SubDomainBuildInfo(
Ref<IParallelMng>
pm,
Int32
index,
Ref<IParallelMng>
all_replica_pm);
59
60
public
:
61
62
Ref<IParallelMng>
parallelMng()
const
63
{
64
return
m_parallel_mng;
65
}
66
67
String
caseFileName()
const
{
return
m_case_file_name
; }
68
69
void
setCaseFileName(
const
String
& filename)
70
{
71
m_case_file_name
= filename;
72
}
73
74
ByteConstArrayView
caseBytes()
const
;
75
ByteConstSpan caseContent()
const
;
76
77
void
setCaseBytes(
ByteConstArrayView
bytes);
78
void
setCaseContent(ByteConstSpan content);
79
80
Integer
index()
const
{
return
m_index
; }
81
82
Ref<IParallelMng>
allReplicaParallelMng()
const
83
{
84
return
m_all_replica_parallel_mng
;
85
}
86
87
private
:
88
89
Ref<IParallelMng>
m_parallel_mng;
90
String
m_case_file_name
;
91
UniqueArray<std::byte>
m_case_content
;
92
Int32
m_index
;
94
Ref<IParallelMng>
m_all_replica_parallel_mng
;
95
};
96
97
/*---------------------------------------------------------------------------*/
98
/*---------------------------------------------------------------------------*/
99
100
}
// End namespace Arcane
101
102
/*---------------------------------------------------------------------------*/
103
/*---------------------------------------------------------------------------*/
104
105
#endif
Parallel.h
File containing declarations concerning the message passing model.
Arcane::IParallelMng
Interface of the parallelism manager for a subdomain.
Definition
IParallelMng.h:53
Arcane::Ref
Reference to an instance.
Definition
arccore/src/base/arccore/base/Ref.h:325
Arcane::String
Unicode character string.
Definition
arccore/src/base/arccore/base/String.h:70
Arcane::SubDomainBuildInfo::m_all_replica_parallel_mng
Ref< IParallelMng > m_all_replica_parallel_mng
Parallelism manager containing all replicas of m_parallel_mng.
Definition
SubDomainBuildInfo.h:94
Arcane::SubDomainBuildInfo::m_case_file_name
String m_case_file_name
Name of the file containing the data set.
Definition
SubDomainBuildInfo.h:90
Arcane::SubDomainBuildInfo::m_index
Int32 m_index
Definition
SubDomainBuildInfo.h:92
Arcane::SubDomainBuildInfo::m_case_content
UniqueArray< std::byte > m_case_content
Data set content.
Definition
SubDomainBuildInfo.h:91
Arcane::UniqueArray
1D data vector with value semantics (STL style).
Definition
arccore/src/common/arccore/common/Array.h:890
Arcane
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Definition
arcane/src/arcane/accelerator/AcceleratorGlobal.h:37
Arcane::Integer
Int32 Integer
Type representing an integer.
Definition
ArccoreGlobal.h:293
Arcane::ByteConstArrayView
ConstArrayView< Byte > ByteConstArrayView
C equivalent of a 1D array of characters.
Definition
UtilsTypes.h:476
Arcane::Int32
std::int32_t Int32
Signed integer type of 32 bits.
Definition
ArccoreGlobal.h:233
arcane
core
SubDomainBuildInfo.h
Generated on
for Arcane by
1.16.1