Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::StringVector Class Reference

Vector of 'String'. More...

#include </__w/arcaneframework.github.io/arcaneframework.github.io/framework/arccore/src/common/arccore/common/StringVector.h>

Collaboration diagram for Arcane::StringVector:

Classes

class  Impl

Public Member Functions

 StringVector (const StringList &string_list)
 StringVector (const StringVector &rhs)
 StringVector (StringVector &&rhs) noexcept
StringVector & operator= (const StringVector &rhs)
Int32 size () const
 Number of elements.
void add (const String &str)
 Adds str to the list of strings.
String operator[] (Int32 index) const
 Returns the i-th string.
StringList toStringList () const
 Converts the instance to 'StringList'.

Private Member Functions

void _checkNeedCreate ()

Private Attributes

Implm_p = nullptr

Detailed Description

Vector of 'String'.

This class has a value semantics and behaves the same as a UniqueArray<String>.

Definition at line 34 of file common/arccore/common/StringVector.h.

Constructor & Destructor Documentation

◆ StringVector() [1/3]

Arcane::StringVector::StringVector ( const StringList & string_list)
explicit

Definition at line 50 of file StringVector.cc.

◆ StringVector() [2/3]

Arcane::StringVector::StringVector ( const StringVector & rhs)

Definition at line 65 of file StringVector.cc.

◆ StringVector() [3/3]

Arcane::StringVector::StringVector ( StringVector && rhs)
noexcept

Definition at line 75 of file StringVector.cc.

◆ ~StringVector()

Arcane::StringVector::~StringVector ( )

Definition at line 101 of file StringVector.cc.

Member Function Documentation

◆ _checkNeedCreate()

void Arcane::StringVector::_checkNeedCreate ( )
inlineprivate

Definition at line 40 of file StringVector.cc.

◆ add()

void Arcane::StringVector::add ( const String & str)

Adds str to the list of strings.

Definition at line 119 of file StringVector.cc.

◆ operator=()

StringVector & Arcane::StringVector::operator= ( const StringVector & rhs)

Definition at line 85 of file StringVector.cc.

◆ operator[]()

String Arcane::StringVector::operator[] ( Int32 index) const

Returns the i-th string.

Definition at line 129 of file StringVector.cc.

References ARCCORE_CHECK_POINTER.

◆ size()

Int32 Arcane::StringVector::size ( ) const

Number of elements.

Definition at line 110 of file StringVector.cc.

◆ toStringList()

StringList Arcane::StringVector::toStringList ( ) const

Converts the instance to 'StringList'.

Definition at line 139 of file StringVector.cc.

References Arcane::ConstArrayView< T >::size().

Here is the call graph for this function:

Member Data Documentation

◆ m_p

Impl* Arcane::StringVector::m_p = nullptr
private

Definition at line 61 of file common/arccore/common/StringVector.h.


The documentation for this class was generated from the following files: