Arcane  v3.14.10.0
Documentation utilisateur
Chargement...
Recherche...
Aucune correspondance
MeshMaterialVariableDependInfo.h
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/* MeshMaterialVariableDependInfo.h (C) 2000-2014 */
9/* */
10/* Informations sur une dépendance de variable. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_MATERIALS_VARIABLEDEPENDINFO_H
13#define ARCANE_MATERIALS_VARIABLEDEPENDINFO_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/materials/IMeshMaterialVariable.h"
18#include "arcane/utils/TraceInfo.h"
19
20/*---------------------------------------------------------------------------*/
21/*---------------------------------------------------------------------------*/
22
23ARCANE_BEGIN_NAMESPACE
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
28/*---------------------------------------------------------------------------*/
29/*---------------------------------------------------------------------------*/
30
31MATERIALS_BEGIN_NAMESPACE
32
33/*---------------------------------------------------------------------------*/
34/*---------------------------------------------------------------------------*/
35/*!
36 * \brief Informations sur une dépendance de variable.
37 */
38class ARCANE_MATERIALS_EXPORT MeshMaterialVariableDependInfo
39{
40 public:
41
43 const TraceInfo& trace_info);
44
45 public:
46
47 //! Variable
48 IMeshMaterialVariable* variable() const { return m_variable; }
49
50 /*!
51 * Infos (si disponible) sur l'endroit dans le code source où la dépendance
52 * a été ajoutée.
53 */
54 const TraceInfo& traceInfo() const { return m_trace_info; }
55
56 private:
57
58 IMeshMaterialVariable* m_variable;
59 TraceInfo m_trace_info;
60};
61
62/*---------------------------------------------------------------------------*/
63/*---------------------------------------------------------------------------*/
64
65MATERIALS_END_NAMESPACE
66
67/*---------------------------------------------------------------------------*/
68/*---------------------------------------------------------------------------*/
69
70ARCANE_END_NAMESPACE
71
72/*---------------------------------------------------------------------------*/
73/*---------------------------------------------------------------------------*/
74
75#endif
Interface d'une variable matériau d'un maillage.
Informations sur une dépendance de variable.
IMeshMaterialVariable * variable() const
Variable.