MatrixScope

sealed interface MatrixScope<SELF : MatrixScope<SELF>>(source)

Common surface shared by the real-tree MatrixSuiteScope and the virtual CompactScope. The data / property overloads below build a kind-neutral LayerSpec and hand it to dispatchContainer / dispatchTerminal, which route to the right scope's registration primitive (registerLayer / addLayer). So the public overloads live in exactly one place instead of being duplicated across the two scopes.

Inheritors

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun <T> data(values: Iterable<T>, nameFn: NameFn<T> = ::defaultLayerName, replay: Indexes? = null, config: DataLayerConfigBuilder.() -> Unit = {}): DataLayer<T, SELF>
open fun <T> data(values: <Error class: unknown class><T>, limit: Long? = null, nameFn: NameFn<T> = ::defaultLayerName, replay: Indexes? = null, config: DataLayerConfigBuilder.() -> Unit = {}): DataLayer<T, SELF>
open fun <T> data(name: String, values: Iterable<T>, nameFn: NameFn<T> = ::defaultLayerName, replay: Indexes? = null, config: DataLayerConfigBuilder.() -> Unit = {}): DataLayer<T, SELF>
open fun <T> data(name: String, values: <Error class: unknown class><T>, limit: Long? = null, nameFn: NameFn<T> = ::defaultLayerName, replay: Indexes? = null, config: DataLayerConfigBuilder.() -> Unit = {}): DataLayer<T, SELF>
Link copied to clipboard
open fun <T> property(gen: Gen<T>, iterations: Int = matrixConfig.defaultPropertyIterations, nameFn: NameFn<T> = ::defaultLayerName, replay: Cases? = null, config: PropertyLayerConfigBuilder.() -> Unit = {}): PropertyLayer<T, SELF>
open fun <T> property(name: String, gen: Gen<T>, iterations: Int = matrixConfig.defaultPropertyIterations, nameFn: NameFn<T> = ::defaultLayerName, replay: Cases? = null, config: PropertyLayerConfigBuilder.() -> Unit = {}): PropertyLayer<T, SELF>