Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
IExpressionImpl.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/* IExpressionImpl.h (C) 2000-2014 */
9/* */
10/* Interface for the different implementations of an expression. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_EXPR_IEXPRESSIONIMPL_H
13#define ARCANE_EXPR_IEXPRESSIONIMPL_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
29class Expression;
30
31/*---------------------------------------------------------------------------*/
32/*---------------------------------------------------------------------------*/
33
37class ARCANE_EXPR_EXPORT IExpressionImpl
38{
39 protected:
40
42 virtual ~IExpressionImpl() {}
43
44 public:
45
46 virtual void assign(IExpressionImpl* expr) = 0;
47 virtual void assign(IExpressionImpl* expr, IntegerConstArrayView indices) = 0;
53 virtual Integer vectorSize() const = 0;
54
55 virtual void dumpIf(IExpressionImpl* test_expr, Array<Expression>& exprs) = 0;
56 virtual void apply(ExpressionResult* result) = 0;
57 virtual void addRef() = 0;
58 virtual void removeRef() = 0;
59 virtual void setTrace(bool v) = 0;
60};
61
62/*---------------------------------------------------------------------------*/
63/*---------------------------------------------------------------------------*/
64
65} // namespace Arcane
66
67/*---------------------------------------------------------------------------*/
68/*---------------------------------------------------------------------------*/
69
70#endif
Declarations of types used in Arcane.
Base class for 1D data vectors.
Polymorphic base type of an expression.
Reference to an expression.
Definition Expression.h:44
Interface for the different implementations of an expression.
virtual ~IExpressionImpl()
Releases resources. Only called by a removeRef().
virtual Integer vectorSize() const =0
Number of elements in the vector.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Int32 Integer
Type representing an integer.
ConstArrayView< Integer > IntegerConstArrayView
C equivalent of a 1D array of integers.
Definition UtilsTypes.h:486