Arcane  v3.14.10.0
Documentation utilisateur
Chargement...
Recherche...
Aucune correspondance
TimeLoopSingletonServiceInfo.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/* TimeLoopSingletonServiceInfo.h (C) 2000-2022 */
9/* */
10/* Infos d'un service singleton d'une boucle en temps. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_TIMELOOPSINGLETONSERVICEINFO_H
13#define ARCANE_TIMELOOPSINGLETONSERVICEINFO_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/utils/String.h"
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27/*!
28 * \internal
29 * \brief Infos d'un service singleton d'une boucle en temps.
30 */
32{
33 public:
34
36 : m_is_required(false){}
37 TimeLoopSingletonServiceInfo(const String& name,bool is_required)
38 : m_name(name), m_is_required(is_required){}
39
40 public:
41
42 const String& name() const { return m_name; }
43 bool isRequired() const { return m_is_required; }
44 bool operator==(const TimeLoopSingletonServiceInfo& rhs) const
45 {
46 if (m_name!=rhs.m_name)
47 return false;
48 return m_is_required!=rhs.m_is_required;
49 }
50
51 private:
52
53 String m_name;
54 bool m_is_required;
55};
56
57/*---------------------------------------------------------------------------*/
58/*---------------------------------------------------------------------------*/
59
60} // End namespace Arcane
61
62/*---------------------------------------------------------------------------*/
63/*---------------------------------------------------------------------------*/
64
65#endif
66
Chaîne de caractères unicode.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-