Arcane
v3.16.0.0
Documentation utilisateur
Chargement...
Recherche...
Aucune correspondance
StringVector.h
1
// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2
//-----------------------------------------------------------------------------
3
// Copyright 2000-2025 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
/* StringVector.h (C) 2000-2025 */
9
/* */
10
/* Liste de 'String'. */
11
/*---------------------------------------------------------------------------*/
12
#ifndef ARCCORE_COLLECTIONS_STRINGVECTOR_H
13
#define ARCCORE_COLLECTIONS_STRINGVECTOR_H
14
/*---------------------------------------------------------------------------*/
15
/*---------------------------------------------------------------------------*/
16
17
#include "arccore/collections/CollectionsGlobal.h"
18
19
/*---------------------------------------------------------------------------*/
20
/*---------------------------------------------------------------------------*/
21
22
namespace
Arcane
23
{
24
25
/*---------------------------------------------------------------------------*/
26
/*---------------------------------------------------------------------------*/
27
/*!
28
* \brief Liste de 'String'.
29
*
30
* Cette classe à une sémantique par valeur et a le même comportement
31
* qu'un UniqueArray<String>.
32
*/
33
class
ARCCORE_COLLECTIONS_EXPORT StringVector
34
{
35
class
Impl
;
36
37
public
:
38
39
StringVector() =
default
;
40
StringVector(
const
StringVector& rhs);
41
StringVector(StringVector&& rhs)
noexcept
;
42
StringVector& operator=(
const
StringVector& rhs);
43
~StringVector();
44
45
public
:
46
47
Int32
size()
const
;
48
void
add(
const
String
& str);
49
String
operator[](
Int32
index)
const
;
50
51
private
:
52
53
Impl
* m_p =
nullptr
;
54
55
private
:
56
57
inline
void
_checkNeedCreate();
58
};
59
60
/*---------------------------------------------------------------------------*/
61
/*---------------------------------------------------------------------------*/
62
63
}
// namespace Arccore
64
65
/*---------------------------------------------------------------------------*/
66
/*---------------------------------------------------------------------------*/
67
68
#endif
Arcane::StringVector::Impl
Definition
StringVector.cc:29
Arcane::String
Chaîne de caractères unicode.
Definition
arccore/src/base/arccore/base/String.h:70
Arcane
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
Definition
AbstractCaseDocumentVisitor.cc:20
Arcane::Int32
std::int32_t Int32
Type entier signé sur 32 bits.
Definition
ArccoreGlobal.h:184
arccore
collections
StringVector.h
Généré le Lundi 24 Mars 2025 02:48:37 pour Arcane par
1.13.2