Arcane  v3.14.10.0
Documentation utilisateur
Chargement...
Recherche...
Aucune correspondance
TemporaryVariableBuildInfo.cc
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2022 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/* TemporaryVariableBuildInfo.cc (C) 2000-2020 */
9/* */
10/* Informations pour construire une variable temporaire. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arcane/TemporaryVariableBuildInfo.h"
15#include "arcane/IModule.h"
16#include "arcane/IVariable.h"
17#include "arcane/IMesh.h"
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
30: VariableBuildInfo(m,_generateName(m->subDomain()->variableMng(),name),property())
31{
32}
33
34/*---------------------------------------------------------------------------*/
35/*---------------------------------------------------------------------------*/
36
39: VariableBuildInfo(sd,_generateName(sd->variableMng(),name),property())
40{
41}
42
43/*---------------------------------------------------------------------------*/
44/*---------------------------------------------------------------------------*/
45
47TemporaryVariableBuildInfo(IModule* m,const String& name,const String& item_family_name)
48: VariableBuildInfo(m,_generateName(m->subDomain()->variableMng(),name),item_family_name,property())
49{
50}
51
52/*---------------------------------------------------------------------------*/
53/*---------------------------------------------------------------------------*/
54
57: VariableBuildInfo(mesh,_generateName(mesh->variableMng(),name),property())
58{
59}
60
61/*---------------------------------------------------------------------------*/
62/*---------------------------------------------------------------------------*/
63
65TemporaryVariableBuildInfo(IMesh* mesh,const String& name,const String& item_family_name)
66: VariableBuildInfo(mesh,_generateName(mesh->variableMng(),name),item_family_name,property())
67{
68}
69
70/*---------------------------------------------------------------------------*/
71/*---------------------------------------------------------------------------*/
72
73int TemporaryVariableBuildInfo::
74property()
75{
77}
78
79/*---------------------------------------------------------------------------*/
80/*---------------------------------------------------------------------------*/
81
82String TemporaryVariableBuildInfo::
83_generateName(IVariableMng* vm,const String& name)
84{
85 ARCANE_UNUSED(vm);
86 return name;
87}
88
89/*---------------------------------------------------------------------------*/
90/*---------------------------------------------------------------------------*/
91
92} // End namespace Arcane
93
94/*---------------------------------------------------------------------------*/
95/*---------------------------------------------------------------------------*/
96
Interface d'un module.
Definition IModule.h:39
Interface du gestionnaire d'un sous-domaine.
Definition ISubDomain.h:74
@ PTemporary
Indique que la variable est temporaire.
Definition IVariable.h:126
@ PNoRestore
Indique que la variable ne doit pas être restaurée.
Definition IVariable.h:133
@ PNoDump
Indique que la variable ne doit pas être sauvegardée.
Definition IVariable.h:72
TemporaryVariableBuildInfo(IModule *m, const String &name)
Construit un initialiseur pour une variable.
Paramètres nécessaires à la construction d'une variable.
Chaîne de caractères unicode.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-