Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
TimeLoopEntryPointInfo.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/* TimeLoopEntryPointInfo.h (C) 2000-2022 */
9/* */
10/* Information about a time loop entry point. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_TIMELOOPENTRYPOINTINFO_H
13#define ARCANE_TIMELOOPENTRYPOINTINFO_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/utils/List.h"
18#include "arcane/utils/String.h"
19
20/*---------------------------------------------------------------------------*/
21/*---------------------------------------------------------------------------*/
22
23namespace Arcane
24{
25
26/*---------------------------------------------------------------------------*/
27/*---------------------------------------------------------------------------*/
28
29/*!
30 * \internal
31 * \brief Info about a time loop entry point.
32 */
33class TimeLoopEntryPointInfo
34{
35 public:
36
37 TimeLoopEntryPointInfo() {}
38 explicit TimeLoopEntryPointInfo(const String& aname)
39 : m_name(aname)
40 {}
41 TimeLoopEntryPointInfo(const String& aname, const StringList& modules_depend)
42 : m_name(aname)
43 , m_modules_depend(modules_depend)
44 {}
45
46 public:
47
48 const String& name() const { return m_name; }
49 const StringList& modulesDepend() const { return m_modules_depend; }
50
51 bool operator==(const TimeLoopEntryPointInfo& rhs) const
52 {
53 if (m_name != rhs.m_name)
54 return false;
55 if (m_modules_depend.count() != rhs.m_modules_depend.count())
56 return false;
57 for (Integer i = 0, is = m_modules_depend.count(); i < is; ++i)
58 if (m_modules_depend[i] != rhs.m_modules_depend[i])
59 return false;
60 return true;
61 }
62
63 private:
64
65 String m_name;
66 StringList m_modules_depend;
67};
68
69/*---------------------------------------------------------------------------*/
70/*---------------------------------------------------------------------------*/
71
72} // End namespace Arcane
73
74/*---------------------------------------------------------------------------*/
75/*---------------------------------------------------------------------------*/
76
77#endif
Integer count() const
Number of elements in the collection.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Int32 Integer
Type representing an integer.
List< String > StringList
Unicode string list.
Definition UtilsTypes.h:509