Expand description
Core ALTREP data traits and helpers.
Defines shared infrastructure used by all ALTREP families:
AltrepLen— length query traitAltrepDataptr/AltrepSerialize/AltrepExtractSubset— optional capabilitiesInferBase— maps data types to their R base type + class registrationSortedness— sort-order metadata constantsLogical— three-valued logical (TRUE/FALSE/NA)fill_region— helper forget_regionimplementations
Enums§
- Logical
- Logical value: TRUE, FALSE, or NA.
- Sortedness
- Sortedness hint for ALTREP vectors.
Traits§
- Altrep
Dataptr - Trait for ALTREP types that can expose a data pointer.
- Altrep
Extract - How to extract a reference to
Selffrom an ALTREP SEXP’s data1 slot. - Altrep
Extract Subset - Trait for ALTREP types that can provide optimized subsetting.
- Altrep
Len - Base trait for ALTREP data types. All ALTREP types must provide length.
- Altrep
Serialize - Trait for ALTREP types that support serialization.
- Infer
Base - Trait for inferring the R base type from a data type’s implemented traits.
Functions§
- fill_
region 🔒 - Helper for ALTREP
get_regionimplementations. - materialize_
altrep_ ⚠data2 - Materialize an ALTREP SEXP into a plain R vector in data2.