RBTreeIndex<T>
Indexes a collection view with a red-black multi-tree when sorting is active and a list otherwise.
Definition
Namespace:Telerik.Collections.Generic
Assembly:Telerik.WinControls.dll
Type Parameters:
T
The data-item type stored by the index.
Syntax:
public class RBTreeIndex<T> : Index<T>, IReadOnlyCollection<T>, IEnumerable where T : IDataItem
Inheritance: objectIndex<T>RBTreeIndex<T>
Implements:
Inherited Members
Constructors
Initializes an index using an explicit source sequence and the specified view's operations.
public RBTreeIndex(RadCollectionView<T> collectionView, IEnumerable<T> source)
The view whose filtering and sorting settings determine the indexed items.
sourceIEnumerable<T>The sequence to index.
Initializes an index using the source sequence of the specified view.
public RBTreeIndex(RadCollectionView<T> collectionView)
The view whose source and operations determine the indexed items.
Properties
Items
IList<T>
Gets the current indexed items, rebuilding them when the view version changes.
public override IList<T> Items { get; }
Overrides:
Methods
Replaces the source sequence and initializes the index from it.
public override void Load(IEnumerable<T> source)
The sequence to index.
Overrides:
Rebuilds the index when its cached version differs from the collection view.
protected override void Perform()
Overrides:
Increments the cached version marker used by Perform().
protected override void SetDirty()
Overrides: