FTXUI 6.1.9
C++ functional terminal UI.
载入中...
搜索中...
未找到
ConstStringListRef类 参考

一个适配器。引用一个字符串列表。 更多...

#include <ref.hpp>

class  Adapter
 

Public 类型

using Variant
 

Public 成员函数

 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 (const std::vector< std::wstring > *value)
 
 ConstStringListRef (Adapter *adapter)
 
template<typename AdapterType >
 ConstStringListRef (std::unique_ptr< AdapterType > adapter)
 
size_t size () const
 
std::string operator[] (size_t i) const
 

详细描述

一个适配器。引用一个字符串列表。

支持的输入:

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

在文件 ref.hpp116 行定义.

成员类型定义说明

◆ Variant

using Variant
初始值:
std::variant<const std::vector<std::string>,
const std::vector<std::string>*,
const std::vector<std::wstring>*,
Adapter*,
std::unique_ptr<Adapter>
>

在文件 ref.hpp130 行定义.

构造及析构函数说明

◆ ConstStringListRef() [1/8]

ConstStringListRef ( )
default

◆ ~ConstStringListRef()

~ConstStringListRef ( )
default

◆ ConstStringListRef() [2/8]

◆ ConstStringListRef() [3/8]

◆ ConstStringListRef() [4/8]

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

在文件 ref.hpp144 行定义.

◆ ConstStringListRef() [5/8]

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

在文件 ref.hpp148 行定义.

◆ ConstStringListRef() [6/8]

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

在文件 ref.hpp152 行定义.

◆ ConstStringListRef() [7/8]

ConstStringListRef ( Adapter * adapter)
inline

在文件 ref.hpp156 行定义.

◆ ConstStringListRef() [8/8]

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

在文件 ref.hpp161 行定义.

成员函数说明

◆ operator=() [1/2]

ConstStringListRef & operator= ( const ConstStringListRef & )
default

◆ operator=() [2/2]

ConstStringListRef & operator= ( ConstStringListRef && )
default

◆ size()

size_t size ( ) const
inline

在文件 ref.hpp167 行定义.

◆ operator[]()

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

在文件 ref.hpp171 行定义.


该类的文档由以下文件生成: