Audacity  3.0.3
Public Member Functions | List of all members
wxArrayStringEx Class Reference

#include <MemoryX.h>

Inheritance diagram for wxArrayStringEx:
[legend]
Collaboration diagram for wxArrayStringEx:
[legend]

Public Member Functions

 wxArrayStringEx ()=default
 
template<typename Iterator >
 wxArrayStringEx (Iterator start, Iterator finish)
 
template<typename T >
 wxArrayStringEx (std::initializer_list< T > items)
 
 wxArrayStringEx (wxArrayString &&other)
 
wxArrayStringExoperator= (wxArrayString &&other)
 
template<typename T >
iterator insert (const_iterator pos, std::initializer_list< T > items)
 

Detailed Description

Definition at line 662 of file MemoryX.h.

Constructor & Destructor Documentation

◆ wxArrayStringEx() [1/4]

wxArrayStringEx::wxArrayStringEx ( )
default

◆ wxArrayStringEx() [2/4]

template<typename Iterator >
wxArrayStringEx::wxArrayStringEx ( Iterator  start,
Iterator  finish 
)
inline

Definition at line 669 of file MemoryX.h.

670  {
671  this->reserve( std::distance( start, finish ) );
672  while( start != finish )
673  this->push_back( *start++ );
674  }

◆ wxArrayStringEx() [3/4]

template<typename T >
wxArrayStringEx::wxArrayStringEx ( std::initializer_list< T >  items)
inline

Definition at line 677 of file MemoryX.h.

678  {
679  this->reserve( this->size() + items.size() );
680  for ( const auto &item : items )
681  this->push_back( item );
682  }

◆ wxArrayStringEx() [4/4]

wxArrayStringEx::wxArrayStringEx ( wxArrayString &&  other)
inline

Definition at line 685 of file MemoryX.h.

686  {
687  swap( other );
688  }

References anonymous_namespace{NoteTrack.cpp}::swap().

Here is the call graph for this function:

Member Function Documentation

◆ insert()

template<typename T >
iterator wxArrayStringEx::insert ( const_iterator  pos,
std::initializer_list< T >  items 
)
inline

Definition at line 702 of file MemoryX.h.

703  {
704  const auto index = pos - ((const wxArrayString*)this)->begin();
705  this->wxArrayString::Insert( {}, index, items.size() );
706  auto result = this->begin() + index, iter = result;
707  for ( auto pItem = items.begin(), pEnd = items.end();
708  pItem != pEnd;
709  ++pItem, ++iter
710  ) {
711  *iter = *pItem;
712  }
713  return result;
714  }

Referenced by FileHistory::AddFileToHistory(), Importer::GetFileTypes(), and GUIPrefs::Populate().

Here is the caller graph for this function:

◆ operator=()

wxArrayStringEx& wxArrayStringEx::operator= ( wxArrayString &&  other)
inline

Definition at line 690 of file MemoryX.h.

691  {
692  if ( this != &other ) {
693  clear();
694  swap( other );
695  }
696  return *this;
697  }

References anonymous_namespace{NoteTrack.cpp}::swap().

Here is the call graph for this function:

The documentation for this class was generated from the following file:
anonymous_namespace{NoteTrack.cpp}::swap
void swap(std::unique_ptr< Alg_seq > &a, std::unique_ptr< Alg_seq > &b)
Definition: NoteTrack.cpp:735