Arcane  v3.14.10.0
Documentation utilisateur
Chargement...
Recherche...
Aucune correspondance
VarRefEnumerator.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/* VarRefEnumerator.h (C) 2000-2010 */
9/* */
10/* Classe parcourant les références d'une Variable. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_VAR_REF_ENUMERATOR_H
13#define ARCANE_VAR_REF_ENUMERATOR_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/IVariable.h"
18#include "arcane/VariableRef.h"
19
20/*---------------------------------------------------------------------------*/
21/*---------------------------------------------------------------------------*/
22
23ARCANE_BEGIN_NAMESPACE
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
28/*---------------------------------------------------------------------------*/
29/*---------------------------------------------------------------------------*/
30
32{
33 public:
35 : m_vref(vp->firstReference())
36 {
37 }
38 void operator++()
39 {
40 m_vref = m_vref->nextReference();
41 }
43 {
44 return m_vref;
45 }
46 bool hasNext() const
47 {
48 return m_vref;
49 }
50 private:
51 VariableRef* m_vref;
52};
53
54/*---------------------------------------------------------------------------*/
55/*---------------------------------------------------------------------------*/
56
57/*---------------------------------------------------------------------------*/
58/*---------------------------------------------------------------------------*/
59
60ARCANE_END_NAMESPACE
61
62/*---------------------------------------------------------------------------*/
63/*---------------------------------------------------------------------------*/
64
65#endif /* ARCANE_VAR_REF_ENUMERATOR_H */
66
virtual VariableRef * firstReference() const =0
Première réference (ou null) sur cette variable.
Référence à une variable.
Definition VariableRef.h:56
Real2 operator*(Real sca, const Real2Proxy &vec)
Multiplication par un scalaire.
Definition Real2Proxy.h:241