Concrete implementation of MemoList.

Implements

Properties

isMemorizing_: boolean = false

This flag helps to prevent modification of the list while iterating.

Methods

  • Adds an object to the list of Memorizable objects. These object's memorize methods will be called from this object's memorize method.

    Parameters

    • memorizable: Memorizable

      object to add to the list of Memorizable objects

    Returns void

    Throws

    if called during the memorize method.

  • Removes an object from the list of Memorizable objects.

    Parameters

    • memorizable: Memorizable

      object to remove from the list of Memorizable objects

    Returns void

    Throws

    if called during the memorize method.

  • Returns a minimal string representation of this object, usually giving just identity information like the class name and name of the object.

    For an object whose main purpose is to represent another Printable object, it is recommended to include the result of calling toStringShort on that other object. For example, calling toStringShort() on a DisplayShape might return something like this:

    DisplayShape{polygon:Polygon{'chain3'}}
    

    Returns string

    a minimal string representation of this object.

Generated using TypeDoc