Home
last modified time | relevance | path

Searched refs:obj (Results 1 – 25 of 49) sorted by relevance

12

/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Utilities/
DWeakWrapper.cs17 public static WeakWrapper<T> CreateForComparison(T obj) in CreateForComparison() argument
19 return new WeakWrapper<T>(obj, true); in CreateForComparison()
22 public WeakWrapper(T obj) : this(obj, false) in WeakWrapper() argument
38 public override bool Equals(object obj) in Equals() argument
40 var objAsWeakWrapper = obj as WeakWrapper<T>; in Equals()
66 private WeakWrapper(T obj, bool doNotCreateWeakReference) in WeakWrapper() argument
72 objHashCode = obj.GetHashCode(); in WeakWrapper()
75 objReference = obj; in WeakWrapper()
79 objWeakReference = new WeakReference<T>(obj); in WeakWrapper()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Utilities/Collections/
DSimpleCache.cs20 var obj = new CacheObject<T1, Object, Func<T1, R>>(generator, parameter); in Get()
21 if(simpleCache.TryGetValue(obj, out var result)) in Get()
29 simpleCache[obj] = generated; in Get()
39 var obj = new CacheObject<T1, T2, Func<T1, T2, R>>(generator, parameterT1, parameterT2); in Get()
40 if(simpleCache.TryGetValue(obj, out var result)) in Get()
47 simpleCache[obj] = generated; in Get()
73 public override bool Equals(Object obj) in Equals()
75 if(!(obj is CacheObject<T1, T2, R> cacheObj)) in Equals()
DInterval.cs48 public int GetHashCode(IInterval<TScalar> obj) in GetHashCode() argument
54 int hash1 = obj.Start.GetHashCode(); in GetHashCode()
55 int hash2 = obj.End.GetHashCode(); in GetHashCode()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/Network/
DPHYRegistrationPoint.cs33 public override bool Equals(object obj) in Equals() argument
35 var other = obj as PHYRegistrationPoint; in Equals()
38 if(ReferenceEquals(this, obj)) in Equals()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/CPU/
DCPURegistrationPoint.cs35 public override bool Equals(object obj) in Equals() argument
37 var other = obj as CPURegistrationPoint; in Equals()
40 if(ReferenceEquals(this, obj)) in Equals()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Core/Structure/
DNumberRegistrationPoint.cs35 public override bool Equals(object obj) in Equals() argument
37 var other = obj as NumberRegistrationPoint<T>; in Equals()
42 if(ReferenceEquals(this, obj)) in Equals()
DTypedNumberRegistrationPoint.cs47 public override bool Equals(object obj) in Equals() argument
49 var other = obj as TypedNumberRegistrationPoint<T>; in Equals()
54 if(ReferenceEquals(this, obj)) in Equals()
DUSBRegistrationPoint.cs23 public override bool Equals (object obj) in Equals() argument
25 var other = obj as USBRegistrationPoint; in Equals()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/USB/
DUSBConnector.cs27 public void AttachTo(IUSBDevice obj) in AttachTo() argument
29 dev = obj; in AttachTo()
32 public void DetachFrom(IUSBDevice obj) in DetachFrom() argument
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Core/
DConnector.cs64 public IEnumerable<IConnectable<IEmulationElement>> GetConnectionsFor(IEmulationElement obj) in GetConnectionsFor() argument
66 return connections.GetAllForRight(obj).Cast<IConnectable<IEmulationElement>>(); in GetConnectionsFor()
69 public IEnumerable<IEmulationElement> GetObjectsConnectedTo(IConnectable obj) in GetObjectsConnectedTo() argument
71 return connections.GetAllForLeft(obj).ToList(); in GetObjectsConnectedTo()
DEmulation.cs466 public bool TryGetEmulationElementName(object obj, out string name) in TryGetEmulationElementName() argument
469 var result = TryGetEmulationElementName(obj, out localName, out localContainerName); in TryGetEmulationElementName()
474 … public bool TryGetEmulationElementName(object obj, out string name, out string containerName) in TryGetEmulationElementName() argument
476 if(obj == null) in TryGetEmulationElementName()
484 if(nameCache.TryGetValue(obj, out result)) in TryGetEmulationElementName()
492 var objAsIPeripheral = obj as IPeripheral; in TryGetEmulationElementName()
501 if(Misc.IsPythonObject(obj)) in TryGetEmulationElementName()
503 name = Misc.GetPythonName(obj); in TryGetEmulationElementName()
512 nameCache.Add(obj, Tuple.Create(name, containerName)); in TryGetEmulationElementName()
516 var objAsMachine = obj as Machine; in TryGetEmulationElementName()
[all …]
DIConnectable.cs12 void AttachTo(T obj); in AttachTo() argument
13 void DetachFrom(T obj); in DetachFrom() argument
DEmulationManager.cs261 …private static bool TryFindPath(object obj, Dictionary<object, IEnumerable<object>> parents, Type … in TryFindPath() argument
263 … return TryFindPathInnerRecursive(obj, parents, new List<object>(), finalType, out resultPath); in TryFindPath()
266 …private static bool TryFindPathInnerRecursive(object obj, Dictionary<object, IEnumerable<object>> … in TryFindPathInnerRecursive() argument
268 currentPath.Add(obj); in TryFindPathInnerRecursive()
269 if(obj.GetType() == finalType) in TryFindPathInnerRecursive()
275 if(parents.ContainsKey(obj)) in TryFindPathInnerRecursive()
277 foreach(var parent in parents[obj]) in TryFindPathInnerRecursive()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Foreign/
DPlayer.cs89 public override bool Equals(object obj) in Equals()
91 if(obj == null) in Equals()
95 if(obj.GetType() != typeof(NameAndHandler)) in Equals()
99 var other = (NameAndHandler)obj; in Equals()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/Bus/
DBusMultiRegistration.cs31 public override bool Equals(object obj) in Equals() argument
33 var other = obj as BusMultiRegistration; in Equals()
38 if(!base.Equals(obj)) in Equals()
DBusRegistration.cs52 public override bool Equals(object obj) in Equals() argument
54 var other = obj as BusRegistration; in Equals()
57 if(ReferenceEquals(this, obj)) in Equals()
DBusRangeRegistration.cs64 public override bool Equals(object obj) in Equals() argument
66 return base.Equals(obj) && Range.Size == ((BusRangeRegistration)obj).Range.Size; in Equals()
DPeripheralAccessMethods.cs55 …public void SetMethod(MethodInfo i, object obj, BusAccess.Operation operation, BusAccess.Method me… in SetMethod() argument
60 SetReadOrWriteMethod(i, obj, operation, ref ReadByte, ref WriteByte); in SetMethod()
63 SetReadOrWriteMethod(i, obj, operation, ref ReadWord, ref WriteWord); in SetMethod()
66 SetReadOrWriteMethod(i, obj, operation, ref ReadDoubleWord, ref WriteDoubleWord); in SetMethod()
69 SetReadOrWriteMethod(i, obj, operation, ref ReadQuadWord, ref WriteQuadWord); in SetMethod()
317 …private static void SetReadOrWriteMethod<TR, TW>(MethodInfo i, object obj, BusAccess.Operation ope… in SetReadOrWriteMethod() argument
322 readMethod = (TR)(object)i.CreateDelegate(typeof(TR), obj); in SetReadOrWriteMethod()
325 writeMethod = (TW)(object)i.CreateDelegate(typeof(TW), obj); in SetReadOrWriteMethod()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Backends/Display/
DPixel.cs28 public override bool Equals(object obj) in Equals() argument
30 return obj is Pixel pixel && in Equals()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Tests/UnitTests/
DSimpleCacheTests.cs260 private string Generator1(object obj) in Generator1() argument
262 return obj.ToString(); in Generator1()
265 private string Generator2(object obj) in Generator2() argument
267 return obj.GetHashCode() + " this is unit test"; in Generator2()
270 private string Generator3(object obj, object obj_1) in Generator3() argument
272 return obj.GetHashCode().ToString() + obj_1; in Generator3()
275 private string Generator4(object obj, object obj_1) in Generator4() argument
277 return obj.GetHashCode().ToString() + obj_1 + " this is another test"; in Generator4()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/Config/
DSimpleJson.cs186 internal static object GetAtIndex(HashSet<KeyValuePair<string, object>> obj, int index) in GetAtIndex() argument
188 if(obj == null) in GetAtIndex()
193 if(index >= obj.Count) in GetAtIndex()
199 foreach(KeyValuePair<string, object> o in obj) in GetAtIndex()
1542 object obj = null; in DeserializeObject()
1548obj = DateTime.ParseExact(str, Iso8601Format, CultureInfo.InvariantCulture, DateTimeStyles.AssumeU… in DeserializeObject()
1552 obj = str; in DeserializeObject()
1558 obj = value; in DeserializeObject()
1563 obj = null; in DeserializeObject()
1568 obj = value; in DeserializeObject()
[all …]
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Cores/RiscV/
DSimpleCSR.cs21 public override bool Equals(object obj) in Equals()
23 if(obj is SimpleCSR csr) in Equals()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/UserInterface/Commands/
DCommand.cs54 public int GetHashCode(Command obj) in GetHashCode() argument
56 return obj.Name.GetHashCode(); in GetHashCode()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Testing/
DFrameBufferTester.cs46 public void AttachTo(IVideo obj) in AttachTo() argument
52 video = obj; in AttachTo()
57 public void DetachFrom(IVideo obj) in DetachFrom() argument
196 private void HandleNewFrame(byte[] obj) in HandleNewFrame() argument
199 converter.Convert(obj, ref buffer); in HandleNewFrame()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Wireless/IEEE802_15_4/
DAddress.cs60 public override bool Equals(object obj) in Equals() argument
62 var objAsAddress = obj as Address; in Equals()

12