Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
MeshVariableRef.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/* MeshVariableRef.h (C) 2000-2025 */
9/* */
10/* Class managing a variable on a mesh entity. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_MESHVARIABLEREF_H
13#define ARCANE_CORE_MESHVARIABLEREF_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/core/VariableRef.h"
18#include "arcane/core/ItemGroup.h"
19
20/*---------------------------------------------------------------------------*/
21/*---------------------------------------------------------------------------*/
22
23namespace Arcane
24{
25
26/*---------------------------------------------------------------------------*/
27/*---------------------------------------------------------------------------*/
28
33class ARCANE_CORE_EXPORT MeshVariableRef
34: public VariableRef
35{
36 public:
37
39 explicit MeshVariableRef(const VariableBuildInfo& vb);
40 ~MeshVariableRef() override = default;
41
42 protected:
43
47 void operator=(const MeshVariableRef& rhs);
48
49 public:
50
51 void synchronize();
52 void synchronize(Int32ConstArrayView local_ids);
53
54 protected:
55
56 void _internalInit(IVariable*);
57};
58
59/*---------------------------------------------------------------------------*/
60/*---------------------------------------------------------------------------*/
61
62} // End namespace Arcane
63
64/*---------------------------------------------------------------------------*/
65/*---------------------------------------------------------------------------*/
66
68#define ARCANE_CHECK_VALID_ITEM_AND_GROUP_KIND(i) \
69 ARCANE_ASSERT((i.kind() == this->itemGroup().itemKind()), ("Item and group kind not same"));
70
71/*---------------------------------------------------------------------------*/
72/*---------------------------------------------------------------------------*/
73
74#endif
Interface of a variable.
Definition IVariable.h:40
MeshVariableRef(const VariableBuildInfo &vb)
Constructs a reference linked to the module.
Parameters necessary for building a variable.
VariableRef(const VariableBuildInfo &vbi)
Constructs a reference to a variable with the infos vbi.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
ConstArrayView< Int32 > Int32ConstArrayView
C equivalent of a 1D array of 32-bit integers.
Definition UtilsTypes.h:482