Ejemplo n.º 1
0
 /// <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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }