> All members, including inherited
◆ at() [1/2]
template<typename StoredType>
StoredType & AListModel< StoredType >::at |
( |
size_t | index | ) |
|
|
inline |
Fetches element by index.
- Sneaky exceptions
AException
thrown if out of bounds.
- Performance note
- if guaranteed
index
is not out of bounds, use the operator[]
function instead.
- Data model note
- A mutable reference returned by this method. If you want to change data, you should report changes by invalidate function.
◆ at() [2/2]
template<typename StoredType>
const StoredType & AListModel< StoredType >::at |
( |
size_t | index | ) |
const |
|
inline |
Fetches element by index.
- Sneaky exceptions
AException
thrown if out of bounds.
- Performance note
- if guaranteed
index
is not out of bounds, use the operator[]
function instead.
◆ fromVector() [1/2]
template<typename StoredType>
template<typename V = StoredType>
Create AListModel from initializer list. Applicable for initializing AListModel<AString> from const char* initializer list.
- Template Parameters
-
- Returns
- a new AListModel
◆ fromVector() [2/2]
template<typename StoredType>
template<typename V>
Create AListModel from initializer list. Applicable for initializing AListModel<AString> from const char* initializer list.
- Template Parameters
-
- Returns
- a new AListModel
◆ listItemAt()
template<typename StoredType>
◆ listSize()
template<typename StoredType>
◆ make()
template<typename StoredType>
template<typename V = StoredType>
static _< AListModel< StoredType > > AListModel< StoredType >::make |
( |
const std::initializer_list< V > & | t | ) |
|
|
inlinestatic |
◆ operator[]()
template<typename StoredType>
const StoredType & AListModel< StoredType >::operator[] |
( |
size_t | index | ) |
const |
|
inline |
Fetches element by index.
- Sneaky assertions
index
points to the existing element.
◆ removeAt()
template<typename StoredType>
void AListModel< StoredType >::removeAt |
( |
size_t | index | ) |
|
|
inlinenoexcept |
Removes element at the specified index.
- Sneaky assertions
index
points to the existing element.
- Parameters
-
index | index of the element. |
◆ removeItem()
template<typename StoredType>
◆ removeItems()
template<typename StoredType>
◆ setItem()
template<typename StoredType>