FTXUI 6.1.9
C++ functional terminal UI.
Loading...
Searching...
No Matches
ConstStringListRef Class Reference

An adapter. Reference a list of strings. More...

#include <ref.hpp>

Classes

class  Adapter
 

Public Types

using Variant
 

Public Member Functions

 ConstStringListRef ()=default
 
 ~ConstStringListRef ()=default
 
ConstStringListRefoperator= (const ConstStringListRef &)=default
 
ConstStringListRefoperator= (ConstStringListRef &&)=default
 
 ConstStringListRef (ConstStringListRef &&)=default
 
 ConstStringListRef (const ConstStringListRef &)=default
 
 ConstStringListRef (std::vector< std::string > value)
 
 ConstStringListRef (const std::vector< std::string > *value)
 
 ConstStringListRef (std::vector< std::string_view > value)
 
 ConstStringListRef (const std::vector< std::string_view > *value)
 
 ConstStringListRef (const std::vector< std::wstring > *value)
 
 ConstStringListRef (Adapter *adapter)
 
template<typename AdapterType >
 ConstStringListRef (std::unique_ptr< AdapterType > adapter)
 
size_t size () const
 
std::string_view operator[] (size_t i) const
 

Detailed Description

An adapter. Reference a list of strings.

Supported input:

  • std::vector<std::string>
  • std::vector<std::string>*
  • std::vector<std::wstring>*
  • Adapter*
  • std::unique_ptr<Adapter>

Definition at line 139 of file ref.hpp.

Member Typedef Documentation

◆ Variant

using Variant
Initial value:
std::variant<const std::vector<std::string>,
const std::vector<std::string>*,
const std::vector<std::string_view>,
const std::vector<std::string_view>*,
const std::vector<std::wstring>*,
Adapter*,
std::unique_ptr<Adapter>
>

Definition at line 153 of file ref.hpp.

Constructor & Destructor Documentation

◆ ConstStringListRef() [1/10]

ConstStringListRef ( )
default

◆ ~ConstStringListRef()

~ConstStringListRef ( )
default

◆ ConstStringListRef() [2/10]

◆ ConstStringListRef() [3/10]

◆ ConstStringListRef() [4/10]

ConstStringListRef ( std::vector< std::string > value)
inline

Definition at line 169 of file ref.hpp.

◆ ConstStringListRef() [5/10]

ConstStringListRef ( const std::vector< std::string > * value)
inline

Definition at line 172 of file ref.hpp.

◆ ConstStringListRef() [6/10]

ConstStringListRef ( std::vector< std::string_view > value)
inline

Definition at line 175 of file ref.hpp.

◆ ConstStringListRef() [7/10]

ConstStringListRef ( const std::vector< std::string_view > * value)
inline

Definition at line 178 of file ref.hpp.

◆ ConstStringListRef() [8/10]

ConstStringListRef ( const std::vector< std::wstring > * value)
inline

Definition at line 181 of file ref.hpp.

◆ ConstStringListRef() [9/10]

ConstStringListRef ( Adapter * adapter)
inline

Definition at line 184 of file ref.hpp.

◆ ConstStringListRef() [10/10]

template<typename AdapterType >
ConstStringListRef ( std::unique_ptr< AdapterType > adapter)
inline

Definition at line 188 of file ref.hpp.

Member Function Documentation

◆ operator=() [1/2]

ConstStringListRef & operator= ( const ConstStringListRef & )
default

◆ operator=() [2/2]

ConstStringListRef & operator= ( ConstStringListRef && )
default

◆ size()

size_t size ( ) const
inline

Definition at line 193 of file ref.hpp.

◆ operator[]()

std::string_view operator[] ( size_t i) const
inline

Definition at line 197 of file ref.hpp.


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