Arcane  v3.16.8.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
VariableTypeInfo.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2025 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/* VariableTypeInfo.h (C) 2000-2025 */
9/* */
10/* Informations caractérisants le type d'une variable. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_VARIABLETYPEINFO_H
13#define ARCANE_CORE_VARIABLETYPEINFO_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
34class ARCANE_CORE_EXPORT VariableTypeInfo
35{
36 public:
37
38 constexpr VariableTypeInfo(eItemKind item_kind,eDataType data_type,Integer dimension,
39 Integer multi_tag,bool is_partial)
40 : m_item_kind(item_kind), m_data_type(data_type), m_dimension(dimension),
41 m_multi_tag(multi_tag), m_is_partial(is_partial){}
42
43 public:
44
46 constexpr eItemKind itemKind() const { return m_item_kind; }
48 constexpr Integer dimension() const { return m_dimension; }
50 constexpr Integer multiTag() const { return m_multi_tag; }
52 constexpr eDataType dataType() const { return m_data_type; }
54 constexpr bool isPartial() const { return m_is_partial; }
55
57 String fullName() const;
58
59 public:
60
62 DataStorageTypeInfo _internalDefaultDataStorage() const;
63
64 private:
65
68
71
74
77
80
81 private:
82
83 String _buildFullTypeName() const;
84};
85
86/*---------------------------------------------------------------------------*/
87/*---------------------------------------------------------------------------*/
88
89} // End namespace Arcane
90
91/*---------------------------------------------------------------------------*/
92/*---------------------------------------------------------------------------*/
93
94#endif
95
Déclarations des types généraux de Arcane.
Informations de type pour un conteneur de données.
Chaîne de caractères unicode.
constexpr bool isPartial() const
Indique si la variable est partielle.
Integer m_dimension
Dimension de la variable.
constexpr Integer multiTag() const
Multi-tag.
bool m_is_partial
Indique si la variable est partielle.
eItemKind m_item_kind
Genre des entités de maillage (peut être nul)
constexpr Integer dimension() const
Dimension.
Integer m_multi_tag
Tag indiquant si on utilise des tableaux de taille variables.
constexpr eItemKind itemKind() const
Type d'entité de maillage.
eDataType m_data_type
Type des données de la variable.
constexpr eDataType dataType() const
Type des données de la variable.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
Int32 Integer
Type représentant un entier.
eItemKind
Genre d'entité de maillage.
eDataType
Type d'une donnée.
Definition DataTypes.h:39