/// <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);
 }
Exemple #2
0
 /// <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);
 }
Exemple #3
0
 /// <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);
 }