Skip to main content

class TableBuilder<R,C,V,Tp,TpR>

undocumented

Type parameters

NameConstraintsDefaultDescription
Rundocumented
Cundocumented
Vundocumented
TpContextImplTypesundocumented
TpRTp & Row<R, C, V> Tp & Row<R, C, V>undocumented

Properties

_lock

undocumented

Definition

_lock: number;

_rowMap

undocumented

Definition

_rowMap?: RMap.Builder<R, RMap.Builder<C, V>>;

_size

undocumented

Definition

_size: number;

addEntries

undocumented

Definition

addEntries: (source: StreamSource<readonly [R, C, V]>) => boolean;

addEntry

undocumented

Definition

addEntry: (entry: readonly [R, C, V]) => boolean;

amountRows

undocumented

Definition

get amountRows(): number;

build

undocumented

Definition

build: () => TpR['normal'];

buildMapValues

undocumented

Definition

buildMapValues: <V2>(mapFun: (value: V, row: R, column: C) => V2) => any;

context

undocumented

Definition

readonly context: TpR['context'];

forEach

undocumented

Definition

forEach: (f: (entry: [R, C, V], index: number, halt: () => void) => void, state?: TraverseState) => void;

get

undocumented

Definition

get: <UR, UC, O>(row: RelatedTo<R, UR>, column: RelatedTo<C, UC>, otherwise?: OptLazy<O> |undefined) => V| O;

getRow

undocumented

Definition

getRow: <UR>(row: RelatedTo<R, UR>) => any;

hasRowKey

undocumented

Definition

hasRowKey: <UR>(row: RelatedTo<R, UR>) => boolean;

hasValueAt

undocumented

Definition

hasValueAt: <UR, UC>(row: RelatedTo<R, UR>, column: RelatedTo<C, UC>) => boolean;

isEmpty

undocumented

Definition

get isEmpty(): boolean;

modifyAt

undocumented

Definition

modifyAt: (row: R, column: C, options: {
    ifNew?: OptLazyOr<V, Token>;
    ifExists?: (currentValue: V, remove: Token) => V | Token;
  }) => boolean;

remove

undocumented

Definition

remove: <UR, UC, O>(row: RelatedTo<R, UR>, column: RelatedTo<C, UC>, otherwise?: OptLazy<O> |undefined) => V| O;

removeEntries

undocumented

Definition

removeEntries: <UR = R, UC = C>(entries: StreamSource<[RelatedTo<R, UR>, RelatedTo<C, UC>]>) => boolean;

removeRow

undocumented

Definition

removeRow: <UR>(row: RelatedTo<R, UR>) => boolean;

removeRows

undocumented

Definition

removeRows: <UR>(rows: StreamSource<RelatedTo<R, UR>>) => boolean;

rowMap

undocumented

Definition

get rowMap(): RMap.Builder<R, RMap.Builder<C, V>>;

set

undocumented

Definition

set: (row: R, column: C, value: V) => boolean;

size

undocumented

Definition

get size(): number;

source

undocumented

Definition

source?: Table.NonEmpty<R, C, V> | undefined;

updateAt

undocumented

Definition

updateAt: <O>(row: R, column: C, update: Update<V>, otherwise?: OptLazy<O> |undefined) => V| O;

Methods

checkLock

undocumented

Definition

checkLock(): void;