Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
ExpressionResult.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/* ExpressionResult.h (C) 2000-2004 */
9/* */
10/* Contient le résultat de l´évaluation d'une expression. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_EXPR_EXPRESSIONRESULT_H
13#define ARCANE_EXPR_EXPRESSIONRESULT_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17
19
20//%% ARCANE_EXPR_SUPPRESS_BEGIN
21#include "arcane/IVariable.h"
22//%% ARCANE_EXPR_SUPPRESS_END
23
24#include "arcane/datatype/ArrayVariant.h"
25
26#include "arcane/utils/Array.h"
27#include "arcane/utils/Iostream.h"
28
29/*---------------------------------------------------------------------------*/
30/*---------------------------------------------------------------------------*/
31
32ARCANE_BEGIN_NAMESPACE
33
34/*---------------------------------------------------------------------------*/
35/*---------------------------------------------------------------------------*/
36
40class ARCANE_EXPR_EXPORT ExpressionResult
41{
42 public:
43//%% ARCANE_EXPR_SUPPRESS_BEGIN
45//%% ARCANE_EXPR_SUPPRESS_END
49
50 public:
51 void allocate(VariantBase::eType type);
52
53 public:
54 ArrayVariant* data() const { return m_data; }
55 IntegerConstArrayView indices () const { return m_indices; }
56 Integer size() const { return m_indices.size(); }
57
58 public:
59 friend std::ostream& operator<<(std::ostream& s, const ExpressionResult& x);
60
61 private:
62//%% ARCANE_EXPR_SUPPRESS_BEGIN
63 void _init(IVariable* v);
64//%% ARCANE_EXPR_SUPPRESS_END
65
66 private:
67 ArrayVariant* m_data;
68 IntegerConstArrayView m_indices;
70};
71
72/*---------------------------------------------------------------------------*/
73/*---------------------------------------------------------------------------*/
74
75ARCANE_END_NAMESPACE
76
77/*---------------------------------------------------------------------------*/
78/*---------------------------------------------------------------------------*/
79
80#endif
81
Fichier de configuration d'Arcane.
Type de base polymorphe pour les tableaux (dimension 1).
Type de base polymorphe d'une expression.
UniqueArray< Integer > m_own_indices
Tableau des indices alloués par cette instance.
Interface d'une variable.
Definition IVariable.h:54
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition Lima.cc:120
Vue constante d'un tableau de type T.