Arcane  v3.15.3.0
Documentation développeur
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
22namespace Arccore
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
33class 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);
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
Liste de 'String'.
Chaîne de caractères unicode.
Espace de nom de Arccore.
Definition ArcaneTypes.h:29
std::int32_t Int32
Type entier signé sur 32 bits.