Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
ExpressionImpl.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/* ExpressionImpl.h (C) 2000-2014 */
9/* */
10/* Implementation of an expression. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_EXPR_EXPRESSIONIMPL_H
13#define ARCANE_EXPR_EXPRESSIONIMPL_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18
19#include "arcane/expr/IExpressionImpl.h"
20#include "arcane/expr/Expression.h"
21
22/*---------------------------------------------------------------------------*/
23/*---------------------------------------------------------------------------*/
24
25namespace Arcane
26{
27
28/*---------------------------------------------------------------------------*/
29/*---------------------------------------------------------------------------*/
30
31class OperatorMng;
32
33/*---------------------------------------------------------------------------*/
34/*---------------------------------------------------------------------------*/
35
39class ARCANE_EXPR_EXPORT ExpressionImpl
40: public IExpressionImpl
41{
42 public:
43
44 ExpressionImpl();
45
46 public:
47
48 virtual void addRef();
49 virtual void removeRef();
50 virtual void setTrace(bool v) { m_do_trace = v; }
51 virtual void dumpIf(IExpressionImpl* test_expr, Array<Expression>& exprs);
52
53 protected:
54
55 OperatorMng* m_op_mng;
56 bool isTraceMode() const { return m_do_trace; }
57
58 private:
59
61 bool m_do_trace;
62};
63
64/*---------------------------------------------------------------------------*/
65/*---------------------------------------------------------------------------*/
66
67} // namespace Arcane
68
69/*---------------------------------------------------------------------------*/
70/*---------------------------------------------------------------------------*/
71
72#endif
Arcane configuration file.
Base class for 1D data vectors.
Integer m_nb_reference
Number of references.
virtual void dumpIf(IExpressionImpl *test_expr, Array< Expression > &exprs)
Interface for the different implementations of an expression.
Stores all possible operator types on expressions.
Definition OperatorMng.h:41
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Int32 Integer
Type representing an integer.