Immutable owning rows with explicit provider identity and bounded identity lookup.
More...
#include <collection.hpp>
|
|
| ~RowCollection ()=default |
| | Release shared row ownership; transferring this value retains a valid shared-owner source.
|
| std::span< const ModelRow< T > > | rows () const noexcept |
| RowLookup | locate (RowId id) const noexcept |
| bool | operator== (const RowCollection &other) const |
|
| static std::expected< RowCollection, TreeError > | from (std::span< const ModelRow< T > > rows, CollectionLimits limits={}) |
| | Copy a checked whole collection into private immutable storage.
|
template<class T>
requires std::copy_constructible<T> && std::equality_comparable<T>
class portals::RowCollection< T >
Immutable owning rows with explicit provider identity and bounded identity lookup.
- Template Parameters
-
| T | Copy-constructible equality-comparable transitively owning domain value; published aliases stay immutable. Copies share one const payload. Existing Model providers do not acquire these copying/equality requirements. |
◆ from()
Copy a checked whole collection into private immutable storage.
- Parameters
-
| rows | Values borrowed only during construction; all RowId components must be nonzero and pairs unique. |
| limits | Positive count cap; domain payload byte bounds remain the source's responsibility. |
- Returns
- Independent row storage or INVALID_ARGUMENT, NODE_LIMIT, NO_MEMORY or CALLBACK_FAILED.
◆ locate()
- Parameters
-
| id | Full provider identity to locate. |
- Returns
- FOUND with the original ordinal, otherwise NOT_FOUND; no allocation or full row scan.
◆ operator==()
- Parameters
-
| other | Owning rows to compare. |
- Returns
- Equal ordered IDs and values; T comparison exceptions propagate to the receiving checked operation.
◆ rows()
- Returns
- Borrowed immutable rows; retain this value or its snapshot throughout use.
The documentation for this class was generated from the following file: