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

Vector of 'String'. More...

#include <arccore/common/StringVector.h>

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'.

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

◆ 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().


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