Arcane  v3.14.10.0
Documentation utilisateur
Chargement...
Recherche...
Aucune correspondance
ForLoopTraceInfo.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/* ForLoopTraceInfo.h (C) 2000-2022 */
9/* */
10/* Informations de trace pour une boucle for. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_UTILS_FORLOOPTRACEINFO_H
13#define ARCANE_UTILS_FORLOOPTRACEINFO_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/utils/String.h"
18#include "arcane/utils/TraceInfo.h"
19
20/*---------------------------------------------------------------------------*/
21/*---------------------------------------------------------------------------*/
22
23namespace Arcane
24{
25
26/*---------------------------------------------------------------------------*/
27/*---------------------------------------------------------------------------*/
28/*!
29 * \brief Informations de trace pour une boucle 'for'.
30 */
31class ARCANE_UTILS_EXPORT ForLoopTraceInfo
32{
33 public:
34
35 ForLoopTraceInfo() = default;
36 explicit ForLoopTraceInfo(const TraceInfo& trace_info)
37 : m_trace_info(trace_info)
38 , m_is_valid(true)
39 {
40 }
41 ForLoopTraceInfo(const TraceInfo& trace_info, const String& loop_name)
42 : m_trace_info(trace_info)
43 , m_loop_name(loop_name)
44 , m_is_valid(true)
45 {
46 }
47
48 public:
49
50 const TraceInfo& traceInfo() const { return m_trace_info; }
51 const String& loopName() const { return m_loop_name; }
52 bool isValid() const { return m_is_valid; }
53
54 private:
55
56 TraceInfo m_trace_info;
57 String m_loop_name;
58 bool m_is_valid = false;
59};
60
61/*---------------------------------------------------------------------------*/
62/*---------------------------------------------------------------------------*/
63
64} // End namespace Arcane
65
66/*---------------------------------------------------------------------------*/
67/*---------------------------------------------------------------------------*/
68
69#endif
70
Informations de trace pour une boucle 'for'.
Chaîne de caractères unicode.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-