|
SimpleWindow
|
非模板列表接口,提供基于Variant的元素访问 更多...
#include <IList.h>
Public 成员函数 | |
| virtual | ~IList ()=default |
| 虚析构函数 | |
| virtual std::type_index | GetElementType () const noexcept=0 |
| 获取列表元素的类型信息 | |
| virtual int | Count () const noexcept=0 |
| 返回列表中的元素数量 | |
| virtual Variant | GetVariantAt (int index)=0 |
| 获取指定索引处元素的Variant引用 | |
| virtual Variant | GetVariantAt (int index) const =0 |
| 获取指定索引处元素的Variant副本 | |
| virtual void | SetVariantAt (int index, const Variant &value)=0 |
| 设置指定索引处的元素值 | |
| virtual void | MoveVariantAt (int index, Variant &value)=0 |
| 设置指定索引处的元素值(移动语义) | |
非模板列表接口,提供基于Variant的元素访问
返回列表中的元素数量
在 sw::List< T >, sw::List< std::wstring >, sw::List< sw::FileFilterItem >, sw::List< sw::GridColumn >, sw::List< sw::GridRow >, sw::List< sw::ListViewColumn >, sw::List< sw::ListViewItem >, sw::List< sw::MenuItemDesc >, sw::List< UDACCEL >, sw::ObservableCollection< T >, sw::ObservableCollection< std::wstring >, sw::ObservableCollection< sw::FileFilterItem >, sw::ObservableCollection< sw::GridColumn >, sw::ObservableCollection< sw::GridRow >, sw::ObservableCollection< sw::ListViewColumn >, sw::ObservableCollection< sw::ListViewItem >, sw::ObservableCollection< UDACCEL >, sw::IListT< T >, sw::IListT< std::wstring >, sw::IListT< sw::FileFilterItem >, sw::IListT< sw::GridColumn >, sw::IListT< sw::GridRow >, sw::IListT< sw::ListViewColumn >, sw::IListT< sw::ListViewItem >, sw::IListT< sw::MenuItemDesc > , 以及 sw::IListT< UDACCEL > 内被实现.
|
pure virtualnoexcept |
获取列表元素的类型信息
在 sw::IListT< T >, sw::IListT< std::wstring >, sw::IListT< sw::FileFilterItem >, sw::IListT< sw::GridColumn >, sw::IListT< sw::GridRow >, sw::IListT< sw::ListViewColumn >, sw::IListT< sw::ListViewItem >, sw::IListT< sw::MenuItemDesc > , 以及 sw::IListT< UDACCEL > 内被实现.
获取指定索引处元素的Variant副本
| index | 元素索引 |
| std::out_of_range | 索引超出范围 |
| std::logic_error | 元素类型不可拷贝构造时 |
在 sw::IListT< T >, sw::IListT< std::wstring >, sw::IListT< sw::FileFilterItem >, sw::IListT< sw::GridColumn >, sw::IListT< sw::GridRow >, sw::IListT< sw::ListViewColumn >, sw::IListT< sw::ListViewItem >, sw::IListT< sw::MenuItemDesc > , 以及 sw::IListT< UDACCEL > 内被实现.
获取指定索引处元素的Variant引用
| index | 元素索引 |
| std::out_of_range | 索引超出范围 |
在 sw::IListT< T >, sw::IListT< std::wstring >, sw::IListT< sw::FileFilterItem >, sw::IListT< sw::GridColumn >, sw::IListT< sw::GridRow >, sw::IListT< sw::ListViewColumn >, sw::IListT< sw::ListViewItem >, sw::IListT< sw::MenuItemDesc > , 以及 sw::IListT< UDACCEL > 内被实现.
设置指定索引处的元素值(移动语义)
| index | 元素索引 |
| value | 要设置的值 |
| std::out_of_range | 索引超出范围 |
在 sw::IListT< T >, sw::IListT< std::wstring >, sw::IListT< sw::FileFilterItem >, sw::IListT< sw::GridColumn >, sw::IListT< sw::GridRow >, sw::IListT< sw::ListViewColumn >, sw::IListT< sw::ListViewItem >, sw::IListT< sw::MenuItemDesc > , 以及 sw::IListT< UDACCEL > 内被实现.
设置指定索引处的元素值
| index | 元素索引 |
| value | 要设置的值 |
| std::out_of_range | 索引超出范围 |
在 sw::IListT< T >, sw::IListT< std::wstring >, sw::IListT< sw::FileFilterItem >, sw::IListT< sw::GridColumn >, sw::IListT< sw::GridRow >, sw::IListT< sw::ListViewColumn >, sw::IListT< sw::ListViewItem >, sw::IListT< sw::MenuItemDesc > , 以及 sw::IListT< UDACCEL > 内被实现.