Exemple #1
0
 public void Clear()
 {
     m_key = TKey.NONE;
     m_char = '\0';
 }
Exemple #2
0
 public static Bucket FromKvp(TKey k, TValue v, IEqualityComparer <TKey> eq, Lineage lin)
 {
     return(new Bucket(k, v, Empty, eq, lin));
 }
Exemple #3
0
 public void Add(TKey key, params TValue[] values) => Add(key, (IEnumerable <TValue>)values);
 public KeyValue(TKey key, TValue value)
 {
     this.Key   = key;
     this.Value = value;
 }
Exemple #5
0
 internal NodeInfo(TKey key, TValue value, DateTime timeouttime)
 {
     this.Key         = key;
     this.Value       = value;
     this.timeOutTime = timeouttime;
 }
 /// <summary>
 /// Create a dummy KeyAndValues with just the key, for lookups.
 /// </summary>
 /// <param name="key">The key to use.</param>
 public KeyAndValues(TKey key)
 {
     this.Key    = key;
     this.Count  = 0;
     this.Values = null;
 }
Exemple #7
0
 public Task <Stream?> ReadStreamAsync(TKey key, Checksum?checksum, CancellationToken cancellationToken)
 => Storage.PerformReadAsync(
Exemple #8
0
 bool ICollection <TKey> .Remove(TKey item)
 => Throw.NotSupportedException <bool>();
 public void Add(TKey key, TValue value)
 {
     throw new NotSupportedException();
 }
Exemple #10
0
 void ICollection <TKey> .Add(TKey item)
 => Throw.NotSupportedException();
Exemple #11
0
 bool ICollection <TKey> .Contains(TKey item)
 => Throw.NotSupportedException <bool>();
Exemple #12
0
 public Node(int order, TKey key, Node node)
 {
     _count       = 1;
     _children    = new KeyValuePair <TKey, Node> [order];
     _children[0] = new KeyValuePair <TKey, Node>(key, node);
 }
Exemple #13
0
 public Pair(TKey key, TValue value, bool isDeleted = false)
 {
     Key       = key;
     Value     = value;
     IsDeleted = isDeleted;
 }
 public LruCacheItem(TKey key, TValue value)
 {
     Key   = key;
     Value = value;
 }
Exemple #15
0
 public TKey(TKey copy)
 {
     this.nk = new TKeyNK(copy.nk.value, copy.nk.tt, copy.nk.next);
 }
 public bool ContainsKey(TKey key)
 {
     return(false);
 }
Exemple #17
0
 public Node(Node copy)
 {
     this.values = copy.values;
     this.index = copy.index;
     this.i_val = new LuaTypeValue(copy.i_val);
     this.i_key = new TKey(copy.i_key);
 }
 public bool Remove(TKey key)
 {
     throw new NotSupportedException();
 }
Exemple #19
0
 public Entry(TKey key, TValue value)
 {
     Key    = key;
     evalue = value;
 }
 public bool TryGetValue(TKey key, [MaybeNullWhen(returnValue: false)] out TValue value)
 {
     value = default !;
Exemple #21
0
 public DictNode(TKey key, TValue val)
 {
     Key = key; Value = val;
 }
 public Subscription(TKey key, int subscriptionKey, HandlerHolder holder)
 {
     this.key             = key;
     this.subscriptionKey = subscriptionKey;
     this.holder          = holder;
 }
Exemple #23
0
 /// <summary>
 /// Constructor. Initializes this collection.
 /// </summary>
 /// <param name="myDictionary">Dictionary we're using.</param>
 /// <param name="key">The key we're looking at.</param>
 public ValuesForKeyCollection(ReadOnlyMultiDictionaryBase <TKey, TValue> myDictionary, TKey key)
 {
     this.myDictionary = myDictionary;
     this.key          = key;
 }
 public void Populate(long start, ref TKey key, ref TLeft payload)
 {
     this.Start   = start;
     this.Key     = key;
     this.Payload = payload;
 }
Exemple #25
0
 /// <summary>Adds an item to the heap.</summary>
 public void Insert(TKey key, TValue value)
 {
     // Create the entry based on the provided key and value
     Insert(new KeyValuePair <TKey, TValue>(key, value));
 }
 public Node(TKey key, TValue value, Node newNode)
 {
     Key   = key;
     Value = value;
     Next  = newNode;
 }
Exemple #27
0
 private Bucket NewBucket(TKey k, TValue v, Bucket next, Lineage lin)
 {
     return(new Bucket(k, v, next, Eq, lin));
 }
Exemple #28
0
 public QueueItem(TKey item, double priority)
 {
     this.Item     = item;
     this.Priority = priority;
 }
Exemple #29
0
 public KeyHolder(TKey key)
 {
     Key = key;
 }
Exemple #30
0
 public TKey(TKey copy)
 {
     this.nk = new TKey_nk(copy.nk.value, copy.nk.tt, copy.nk.next);
 }
Exemple #31
0
 public KeyboardEvent(EventState state, TKey key, LockKey lockKey)
 {
     m_state = state;
     m_key = key;
     m_lockKey = lockKey;
 }
Exemple #32
0
 /// <summary>
 /// Construct a proxy item
 /// </summary>
 public DebuggerProxyItem(TKey InKey, IEnumerable <TValue> InValues)
 {
     Key    = InKey;
     Values = InValues.ToArray();
 }
Exemple #33
0
 public Node()
 {
     this.i_val = new LuaTypeValue();
     this.i_key = new TKey();
 }
Exemple #34
0
 internal Node(TKey key, TValue value, int hashcode) : this(key, value, hashcode, null)
 {
 }
Exemple #35
0
 public Node(TValue i_val, TKey i_key)
 {
     this.values = new Node[] { this };
     this.index = 0;
     this.i_val = i_val;
     this.i_key = i_key;
 }
Exemple #36
0
 /// <summary>
 /// Add an element with the specified key and value into the container.
 /// </summary>
 /// <param name="key">The key of the element to add.</param>
 /// <param name="item">The value of the element to add.</param>
 public void Add(TKey key, TValue item)
 {
     Assert.IsTrue(m_ThreadIndex >= 0);
     UnsafeHashMapBase <TKey, TValue> .AddAtomicMulti(m_Buffer, key, item, m_ThreadIndex);
 }