|
Aria 3.2.6
C++23 MVVM framework — reactive, coroutine-first, ABI-layered
|
#include <sorted_list.hpp>
Public Types | |
| using | value_type = T |
| using | Comparator = aria::inplace_function<bool(const T&, const T&), 32> |
| Strict weak ordering on items. | |
| using | Signal = detail::ListSignal<T> |
Public Member Functions | |
| SortedList (std::shared_ptr< Source > source, Comparator comparator) | |
| template<typename Fn> requires (!std::is_same_v<std::decay_t<Fn>, Comparator> && !std::is_pointer_v<std::decay_t<Fn>> && std::is_copy_constructible_v <std::decay_t<Fn>> && std::is_invocable_r_v<bool, std::decay_t<Fn>&, const T&, const T&>) | |
| SortedList (std::shared_ptr< Source > source, Fn &&comparator) | |
| ~SortedList ()=default | |
| SortedList (const SortedList &)=delete | |
| SortedList & | operator= (const SortedList &)=delete |
| std::size_t | size () const |
| bool | empty () const |
| std::shared_ptr< T > | at (std::size_t derived_index) const |
| std::vector< std::shared_ptr< T > > | snapshot () const |
| std::optional< std::size_t > | source_index_of (std::size_t derived_index) const |
| void | set_comparator (Comparator new_comparator) |
| template<typename Fn> requires (!std::is_same_v<std::decay_t<Fn>, Comparator> && !std::is_pointer_v<std::decay_t<Fn>> && std::is_copy_constructible_v <std::decay_t<Fn>> && std::is_invocable_r_v<bool, std::decay_t<Fn>&, const T&, const T&>) | |
| void | set_comparator (Fn &&comparator) |
| using aria::SortedList< T, Source >::value_type = T |
| using aria::SortedList< T, Source >::Comparator = aria::inplace_function<bool(const T&, const T&), 32> |
Strict weak ordering on items.
Must be stable across calls for the lifetime of the SortedList (or until set_comparator). Owning, heap-free comparator handle (capacity 32 bytes). Concrete callable overloads retain its target type for whole-scan inlining; the view still owns one comparator instance in one shared allocation.
| using aria::SortedList< T, Source >::Signal = detail::ListSignal<T> |
|
inline |
|
inline |
|
default |
|
delete |
|
delete |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inline |
|
inline |