Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::ui::RowField< Row, Value > Class Template Reference

Weak row-qualified field capability; saved descriptors do not keep UI assignments alive. More...

#include <ui_virtual_rows.hpp>

Public Member Functions

 ~RowField ()=default
 Keep checked string descriptor transfers fallible through copying.
std::expected< EditFieldSnapshot< Value >, TreeError > snapshot () const
std::expected< EditStatus, TreeError > set (const Value &value) const
RowField validate (std::function< bool(const Value &)> rule) const

Friends

template<class>
class RowContext

Detailed Description

template<class Row, class Value>
class portals::ui::RowField< Row, Value >

Weak row-qualified field capability; saved descriptors do not keep UI assignments alive.

Template Parameters
RowDomain record.
ValueOwning copyable field value supported by the existing edit engine.

Member Function Documentation

◆ set()

template<class Row, class Value>
std::expected< EditStatus, TreeError > portals::ui::RowField< Row, Value >::set ( const Value & value) const
inline
Parameters
valueOwning field candidate.
Returns
Existing edit admission/status, never retargeted through current.

◆ snapshot()

template<class Row, class Value>
std::expected< EditFieldSnapshot< Value >, TreeError > portals::ui::RowField< Row, Value >::snapshot ( ) const
inline
Returns
Existing owning accepted/draft snapshot for this exact row, or checked lifetime/thread failure. Native readonly accepted values retain their actual immutable source-page lease and its source credit until the last snapshot releases it; they do not retain the UI assignment.

◆ validate()

template<class Row, class Value>
RowField portals::ui::RowField< Row, Value >::validate ( std::function< bool(const Value &)> rule) const
inline
Parameters
ruleOwning synchronous validation rule.
Returns
Copy of this weak field capability with that rule.

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