Free Touch Pricker
    Preparing search index...

    Class AbstractContainer<Block>Abstract

    Abstract class representing containers for blocks of rows

    Containers are blocks that contain other blocks. Like blocks, containers:

    • are initialised from a row
    • provide access to the last row in the container
    • etc. In addition to this containers propagate changes between child blocks.

    Type Parameters

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    _blocks: Block[] = []

    Blocks within the container

    _initialRow: Row

    Initial row for the block

    _ownership?: BlockOwnership

    Ownership of this block

    Accessors

    • get index(): number | undefined

      Allows public access to the index

      Returns number | undefined

    • get rows(): number

      Estimates the number of rows in the block The estimate doesn't take into account coming round part-way through

      Returns number

    Methods

    • Read access to a block

      Derived classes should provide public access via a more suitably-named method

      Parameters

      • index: number

      Returns Block

    • Propagates data between blocks within the container

      Parameters

      • index: number = 0

        where to start when recalculating

      Returns void