|
Aria 2.0.0
C++23 MVVM framework (C++20 minimum) — reactive, coroutine-first, ABI-layered
|
#include <grouped_list.hpp>
Public Types | |
| using | value_type = Group<T, Key> |
| using | KeyOf = aria::inplace_function<Key(const T&), 32> |
| Owning, heap-free key extractor (capacity 32 bytes). | |
| using | Signal = detail::ListSignal<Group<T, Key>> |
Public Member Functions | |
| GroupedList (std::shared_ptr< Source > source, KeyOf key_of=default_key_of_()) | |
| ~GroupedList ()=default | |
| GroupedList (const GroupedList &)=delete | |
| GroupedList & | operator= (const GroupedList &)=delete |
| std::size_t | size () const |
| bool | empty () const |
| std::shared_ptr< Group< T, Key > > | at (std::size_t idx) const |
| std::vector< std::shared_ptr< Group< T, Key > > > | snapshot () const |
| std::shared_ptr< Group< T, Key > > | find (const Key &k) const |
| Find a group by key (returns nullptr if no such group exists currently). | |
| using aria::GroupedList< T, Key, Source >::value_type = Group<T, Key> |
| using aria::GroupedList< T, Key, Source >::KeyOf = aria::inplace_function<Key(const T&), 32> |
Owning, heap-free key extractor (capacity 32 bytes).
| using aria::GroupedList< T, Key, Source >::Signal = detail::ListSignal<Group<T, Key>> |
|
inline |
|
default |
|
delete |
|
delete |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
Find a group by key (returns nullptr if no such group exists currently).
Useful for adapters that want to render a fixed set of section headers.