ListeningVector

Description

abstract class Tinman.Core.Collections.ListeningVector<T>

Derived from

EnumerableBase<T> abstract
IVector<T>

Wraps a IVector object and generates a notification for each list modification by calling the ElementsChanged method.

Protected / Constructors

Listening​Vector


protected constructor ListeningVector → (1)

list in : IVector<T>

[not-null]
The list to wrap.

Creates a new instance of ListeningVector.

Protected / Methods

Elements​Changed


protected abstract method ElementsChanged → (3)

change in : int32

Indicates the kind of modification that has been performed:
< 0 : The list elements have been removed,
= 0 : The list element has been updated (i.e. to in = from in + 1),
> 0 : The list elements have been added to the model.

from in : int32

Index of first list element (inclusive).

to in : int32

Index of last list element (exclusive).

The list elements have been modified.

This method is called immediately after the modification has taken place.

Elements​Changing


protected abstract method ElementsChanging → (3)

change in : int32

Indicates the kind of modification that has been performed:
< 0 : The list elements have been removed,
= 0 : The list element has been updated (i.e. to in = from in + 1),
> 0 : The list elements have been added to the model.

from in : int32

Index of first list element (inclusive).

to in : int32

Index of last list element (exclusive).

The list elements have been modified.

This method is called right before the modification is taking place.