|
parcel 0.2.2
Wrappable, wire-transferable C++23 value system with JSON serialization
|
Descriptor for TypedListCell<T>.
More...
#include <list.h>


Public Member Functions | |
| TypedListCellTypeDescriptor (DisplayInfo info) | |
| Construct with the given display info. | |
| std::string_view | element_kind () const |
| Wire kind id of the list's element type. | |
| descriptor::CellCategory | category () const override |
| Coarse classification (primitive, list, struct, …). | |
| std::vector< std::string_view > | sub_kinds () const override |
| Sub-kind ids reachable from this descriptor. | |
| cell_t | cell_from_json (json_t const &j, ParcelRegistry const ®) const override |
Construct a cell from JSON, dispatching to the concrete from_json. | |
| json_t | to_json () const override |
| Serialize the descriptor itself (kind + display info + category + extras). | |
Public Member Functions inherited from parcel::BaseCellTypeDescriptor< TypedListCell< T > > | |
| BaseCellTypeDescriptor (DisplayInfo info) | |
| Construct with the given display info. | |
Additional Inherited Members | |
Static Public Attributes inherited from parcel::BaseCellTypeDescriptor< TypedListCell< T > > | |
| static constexpr std::string_view | kind_id |
Wire-stable kind id, lifted from T::kind_id. | |
Protected Member Functions inherited from parcel::BaseCellTypeDescriptor< TypedListCell< T > > | |
| json_t | base_to_json () const |
Common JSON skeleton (kind, display_info, category) reused by overrides. | |
Protected Attributes inherited from parcel::BaseCellTypeDescriptor< TypedListCell< T > > | |
| DisplayInfo | display_info_ |
| Stored display info. | |
Descriptor for TypedListCell<T>.
Adds an "element_kind" field to the JSON descriptor and exposes the element kind through ISubTypes so the registry's schema walker reaches the inner type.
| T | Element cell type. |
|
inlineexplicit |
Construct with the given display info.
| info | Display info. |
|
inlineoverridevirtual |
Construct a cell from JSON, dispatching to the concrete from_json.
| j | JSON object to deserialize. |
| reg | Registry used to resolve nested polymorphic cells. |
| std::runtime_error | on shape or kind mismatch. |
Implements parcel::ICellTypeDescriptor.
|
inlineoverridevirtual |
Serialize the descriptor itself (kind + display info + category + extras).
Reimplemented from parcel::BaseCellTypeDescriptor< TypedListCell< T > >.