Home
last modified time | relevance | path

Searched refs:TryGetValue (Results 1 – 25 of 117) sorted by relevance

12345

/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Utilities/Collections/
DMultiValueDictionary.cs45 if(single.TryGetValue(key, out existingSingle)) in Add()
53 if(multiple.TryGetValue(key, out existingMultiple)) in Add()
65 if(single.TryGetValue(key, out existingSingle)) in AddRange()
75 if(multiple.TryGetValue(key, out existingMultiple)) in AddRange()
102 if(single.TryGetValue(key, out existingSingle) && existingSingle.Equals(value)) in Remove()
107 … if(multiple.TryGetValue(key, out existingMultipleValues) && existingMultipleValues.Remove(value)) in Remove()
125 public bool TryGetValue(TKey key, out IReadOnlyCollection<TValue> values) in TryGetValue() method in Antmicro.Renode.Utilities.Collections.MultiValueDictionary
128 if(single.TryGetValue(key, out existingSingle)) in TryGetValue()
135 var ret = multiple.TryGetValue(key, out existingMultiple); in TryGetValue()
165 return TryGetValue(key, out values) && values.Contains(value); in Contains()
DSerializableWeakKeyDictionary.cs55 public bool TryGetValue(TKey key, out TValue value) in TryGetValue() method in Antmicro.Renode.Utilities.Collections.SerializableWeakKeyDictionary
59 return cwt.TryGetValue(key, out value); in TryGetValue()
70 if(cwt.TryGetValue(index, out value))
119 … return TryGetTarget(x, out target) && cwt.TryGetValue(target, out value) ? value : null;
171 if(TryGetTarget(weakKey, out key) && cwt.TryGetValue(key, out value)) in GetEnumerator()
214 if(TryGetTarget(x, out target) && cwt.TryGetValue(target, out value)) in BeforeSerialization()
DFastReadConcurrentTwoWayDictionary.cs66 if(!newLefts.TryGetValue(left, out right)) in TryRemove()
160 public bool TryGetValue(TLeft left, out TRight right) in TryGetValue() method in Antmicro.Renode.Utilities.Collections.FastReadConcurrentTwoWayDictionary
168 return copy.TryGetValue(left, out right); in TryGetValue()
171 public bool TryGetValue(TRight right, out TLeft left) in TryGetValue() method in Antmicro.Renode.Utilities.Collections.FastReadConcurrentTwoWayDictionary
179 return copy.TryGetValue(right, out left); in TryGetValue()
DTwoWayDictionary.cs116 public bool TryGetValue(TLeft left, out TRight right) in TryGetValue() method in Antmicro.Renode.Utilities.Collections.TwoWayDictionary
118 return lefts.TryGetValue(left, out right); in TryGetValue()
121 public bool TryGetValue(TRight right, out TLeft left) in TryGetValue() method in Antmicro.Renode.Utilities.Collections.TwoWayDictionary
123 return rights.TryGetValue(right, out left); in TryGetValue()
DSimpleCache.cs21 if(simpleCache.TryGetValue(obj, out var result)) in Get()
40 if(simpleCache.TryGetValue(obj, out var result)) in Get()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Tests/UnitTests/Collections/
DMultiValueDictionaryTests.cs40 Assert.IsTrue(multiDict.TryGetValue("key", out values)); in ShouldAddAndTryGetValue()
48 Assert.IsTrue(multiDict.TryGetValue("key2", out values)); in ShouldAddAndTryGetValue()
62 Assert.IsFalse(multiDict.TryGetValue("海亀", out values)); in ShouldNotGetValue()
74 Assert.IsFalse(multiDict.TryGetValue("海亀", out values)); in ShouldClear()
75 Assert.IsFalse(multiDict.TryGetValue("key1", out values)); in ShouldClear()
76 Assert.IsFalse(multiDict.TryGetValue("key2", out values)); in ShouldClear()
77 Assert.IsFalse(multiDict.TryGetValue("key3", out values)); in ShouldClear()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Utilities/Packets/
DDynamicPropertiesObject.cs36 if(setters.TryGetValue(binder.Name, out var setter)) in TrySetMember()
49 if(getters.TryGetValue(binder.Name, out var getter)) in TryGetMember()
55 if(!fields.TryGetValue(binder.Name, out result)) in TryGetMember()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Core/Structure/Registers/
DRegisterCollection.cs164 if(beforeReadHooks.TryGetValue(offset, out var beforeReadHook)) in TryRead()
175 if(registers.TryGetValue(offset, out var register)) in TryRead()
180 if(afterReadHooks.TryGetValue(offset, out var afterReadHook)) in TryRead()
214 if(registers.TryGetValue(offset, out var register)) in TryWrite()
216 if(beforeWriteHooks.TryGetValue(offset, out var beforeWriteHook)) in TryWrite()
224 if(afterWriteHooks.TryGetValue(offset, out var afterWriteHook)) in TryWrite()
240 return registers.TryGetValue(offset, out var selector) && selector.HasRegister(); in HasRegisterAtOffset()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Time/
DTimeDomainsManager.cs47 … if(!timeGetters.TryGetValue(Thread.CurrentThread.ManagedThreadId, out var timestampGenerator))
62 … if(!timeGetters.TryGetValue(Thread.CurrentThread.ManagedThreadId, out var timestampGenerator)) in TryGetVirtualTimeStamp()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Utilities/
DLRUCache.cs24 public bool TryGetValue(TKey key, out TVal value) in TryGetValue() method in Antmicro.Renode.Utilities.LRUCache
28 if(values.TryGetValue(key, out var item)) in TryGetValue()
DLINDecoder.cs58 if(entries.TryGetValue(protectedIdentifier, out var linEntry)) in TryGetEntry()
97 if(!entries.TryGetValue(value, out var entry)) in Feed()
233 …protected LINEntry CurrentEntry => entries.TryGetValue(currentProtectedIdentifier, out var entry) …
DTypeResolver.cs26 if (!typesMap.TryGetValue(name, out result)) in ResolveType()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Core/
DIGPIORedirector.cs27 public bool TryGetValue(int key, out IGPIO value) in TryGetValue() method in Antmicro.Renode.Core.IGPIORedirector
43 if(!TryGetValue(index, out value))
DEmulation.cs159 return machs.TryGetValue(key, out machine); in TryGetMachine()
164 return machs.TryGetValue(machine, out name); in TryGetMachineName()
217 return machs.TryGetValue(name, out machine); in TryGetMachineByName()
446 if(peripheralToMachineCache.TryGetValue(p, out machine)) in TryGetMachineForPeripheral()
484 if(nameCache.TryGetValue(obj, out result)) in TryGetEmulationElementName()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Network/
DQuectel_BC660K.cs131 if(!nameModemConfigDecoder.TryGetValue(function, out var modemFunction)) in Qcfg()
136 if(modemBasicConfig.TryGetValue(modemFunction, out int value)) in Qcfg()
185 if(modemBasicConfig.TryGetValue(modemFunction, out int value)) in QcfgRead()
369 if(gpioConfig.TryGetValue(pin, out var gpioStatus)) in ConfigureGPIOStatus()
393 if(gpioConfig.TryGetValue(pin, out var gpioStatus)) in ConfigureGPIOStatus()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/Network/
DNetworkWithPHY.cs56 if(phys.TryGetValue(id, out var _phy) && _phy is IPhysicalLayer<T>) in TryGetPhy()
67 if(phys.TryGetValue(id, out var _phy) && _phy is IPhysicalLayer<T, V>) in TryGetPhy()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/SPI/
DFakeEfmSPITransmitter.cs29 responses.TryGetValue(currentByteNo, out data); in WriteChar()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Sensors/
DMAX86171.cs922 … Metadata.TryGetValue($"meas{i}_led_a_exposure", out var value) ? value.As<ushort?>() : null
926 … Metadata.TryGetValue($"meas{i}_led_a_source", out var value) ? value.As<byte?>() : null
930 … Metadata.TryGetValue($"meas{i}_led_b_exposure", out var value) ? value.As<ushort?>() : null
934 … Metadata.TryGetValue($"meas{i}_led_b_source", out var value) ? value.As<byte?>() : null
938 … Metadata.TryGetValue($"meas{i}_led_c_exposure", out var value) ? value.As<ushort?>() : null
942 … Metadata.TryGetValue($"meas{i}_led_c_source", out var value) ? value.As<byte?>() : null
946 … Metadata.TryGetValue($"meas{i}_pd_a_source_flags", out var value) ? value.As<byte?>() : null
950 … Metadata.TryGetValue($"meas{i}_pd_a_adc_range", out var value) ? value.As<uint?>() : null
954 … Metadata.TryGetValue($"meas{i}_pd_a_dac_offset", out var value) ? value.As<short?>() : null
958 … Metadata.TryGetValue($"meas{i}_pd_b_source_flags", out var value) ? value.As<byte?>() : null
[all …]
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Utilities/GDB/
DCommandsManager.cs92 if(!commandsCache.TryGetValue(mnemonic, out command)) in TryGetCommand()
146 if(unifiedRegisters.TryGetValue(registerNumber, out var registers)) in GetCompiledRegisters()
201 if(types.TryGetValue(id, out var hit)) in AddFeatureTypes()
220 if(field.TryGetValue("type", out var fieldType) && !types.ContainsKey(fieldType)) in AddFeatureTypes()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/CPU/
DLLVMArchitectureMapping.cs28 if(!ModelTranslations.TryGetValue(cpu.Model, out model)) in GetTripleAndModelKey()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/GPIOPort/
DMiV_CoreGPIO.cs144 if(!intTypeToVal.TryGetValue((uint)value, out var type)) in MiV_CoreGPIO()
152 if(!intTypeToVal.TryGetValue(irqManager.InterruptType[j], out var value)) in MiV_CoreGPIO()
204 if(!intTypeToVal.TryGetValue(triggerType, out var value)) in ConfigureFixedPinTriggerMode()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/USB/
DUSBHost.cs44 bool found = devices.TryGetValue(peripheral, out var address); in Unregister()
59 devices.TryGetValue(address, out device); in TryGetDevice()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/UserInterface/Commands/
DLoggerFileCommand.cs40 if(Logger.GetBackends().TryGetValue(BackendName, out var backend)) in InnerRun()
/Renode-Infrastructure-v1.15.3-29f510e/src/UI/XwtProvider/
DWindowedUserInterfaceProvider.cs48 if(openedWindows.TryGetValue(analyzer, out win)) in HideAnalyser()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/
DBackendManager.cs83 return map.TryGetValue(peripheral, out backend); in TryGetBackendFor()
89 var result = map.TryGetValue(element, out outValue);
105 …if(!analyzers.TryGetValue(backendType, out foundAnalyzers) || foundAnalyzers.Count(x => x.Item2) >…

12345