コード例 #1
0
        private void CopyAccessLists(HashSet <Address>?addresses, HashSet <StorageCell>?storage)
        {
            if (addresses is not null)
            {
                foreach (Address address in addresses)
                {
                    AccessedAddresses.Add(address);
                }
            }

            if (storage is not null)
            {
                foreach (StorageCell storageCell in storage)
                {
                    AccessedStorageCells.Add(storageCell);
                }
            }
        }
コード例 #2
0
 public void WarmUp(StorageCell storageCell)
 {
     AccessedStorageCells.Add(storageCell);
 }
コード例 #3
0
 public bool IsCold(StorageCell storageCell)
 {
     return(_accessedStorageKeys is null || !AccessedStorageCells.Contains(storageCell));
 }