/// <summary> /// Constructor. /// </summary> public BTreeDictionaryView( BTreeDictionary <TK, TV> parent, BoundRange <TK> range) { _parent = parent; _range = range; _keys = new BTreeDictionaryKeys <TK, TV>(_parent.Underlying, _range); _values = new BTreeDictionaryValues <TK, TV>(_parent.Underlying, _range); }
/// <summary> /// Constructor. /// </summary> /// <param name="comparer"></param> public BTreeDictionary(IComparer <TK> comparer) { Underlying = new BTree <TK, KeyValuePair <TK, TV> >(_ => _.Key, comparer); _keys = new BTreeDictionaryKeys <TK, TV>(Underlying); _values = new BTreeDictionaryValues <TK, TV>(Underlying); }
/// <summary> /// Constructor. /// </summary> public BTreeDictionary() { Underlying = new BTree <TK, KeyValuePair <TK, TV> >(_ => _.Key, Comparer <TK> .Default); _keys = new BTreeDictionaryKeys <TK, TV>(Underlying); _values = new BTreeDictionaryValues <TK, TV>(Underlying); }