Aria 2.0.0
C++23 MVVM framework (C++20 minimum) — reactive, coroutine-first, ABI-layered
Loading...
Searching...
No Matches
aria::adapters::uikit::ObservableTableSource< T > Class Template Reference

#include <UIKitTableSource.hpp>

Public Types

using CellForRowFn
 Render callback: given a row's shared_ptr<T>, the table view and the index path being asked about, return the UITableViewCell* to display (typically via [tableView dequeueReusableCellWithIdentifier:...]).

Instance Methods

(requires ::aria::ListSourceOf< L, T >) - ObservableTableSource
 Construct a binding between an aria list source and a UITableView.
() - ~ObservableTableSource
() - ObservableTableSource
(ObservableTableSource &) - operator=
(std::size_t) - row_count
(std::shared_ptr< T >) - at

Member Typedef Documentation

◆ CellForRowFn

- (using) adapters:
Initial value:
std::function<UITableViewCell*(UITableView*,
std::shared_ptr<T>,
NSIndexPath*)>

Render callback: given a row's shared_ptr<T>, the table view and the index path being asked about, return the UITableViewCell* to display (typically via [tableView dequeueReusableCellWithIdentifier:...]).

Constructor & Destructor Documentation

◆ ObservableTableSource [1/2]

- (requires) aria: (UITableView *) tableView
(L &) source
(CellForRowFn) cell_for_row 

Construct a binding between an aria list source and a UITableView.

Source writes must be serialized with construction so snapshot capture and observer registration see one coherent state.

◆ ~ObservableTableSource

- adapters:

◆ ObservableTableSource [2/2]

- adapters: (const ObservableTableSource< T > &)

Method Documentation

◆ operator=

- (ObservableTableSource &) adapters: (const ObservableTableSource< T > &)

◆ row_count

- (size_t) aria: const

◆ at

- (shared_ptr< T >) aria: (std::size_t) i const

The documentation for this class was generated from the following file: