Skip to content

WBTreeBase class

Keihō Sakapon edited this page Mar 5, 2022 · 14 revisions

Initialize Tree

- Clear()
- Initialize(IEnumerable<T> items, bool assertsItems)

Get/Remove Items

- GetItems()
- GetItemsDescending()

Binary Search:
- GetItems(Func<T, bool> startPredicate, Func<T, bool> endPredicate)
- GetItemsDescending(Func<T, bool> startPredicate, Func<T, bool> endPredicate)
- RemoveItems(Func<T, bool> startPredicate, Func<T, bool> endPredicate)

By Index:
- GetItems(int startIndex, int endIndex)
- GetItemsDescending(int startIndex, int endIndex)
- RemoveItems(int startIndex, int endIndex)

Get/Remove Node

- GetFirst()
- GetLast()
- RemoveFirst()
- RemoveLast()

Binary Search:
- GetFirst(Func<T, bool> predicate)
- GetLast(Func<T, bool> predicate)
- RemoveFirst(Func<T, bool> predicate)
- RemoveLast(Func<T, bool> predicate)

By Index:
- GetAt(int index)
- RemoveAt(int index)

Get Index

Binary Search:
- GetFirstIndex(Func<T, bool> predicate)
- GetLastIndex(Func<T, bool> predicate)
- GetCount(Func<T, bool> startPredicate, Func<T, bool> endPredicate)

Add Item(s)

- Add(T item)

Plural:
- AddItems(IEnumerable<T> items)