mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	add hash method to scopeindex cursor
This commit is contained in:
		
							parent
							
								
									b66897e9b9
								
							
						
					
					
						commit
						2a744b4b82
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -169,6 +169,10 @@ public: | ||||||
| 			return !(*this == other); | 			return !(*this == other); | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
|  | 		int hash() const { | ||||||
|  | 			return mkhash(scope_name.hash(), hash_ptr_ops::hash(target)); | ||||||
|  | 		} | ||||||
|  | 
 | ||||||
| 		bool valid() const { | 		bool valid() const { | ||||||
| 			return target != nullptr; | 			return target != nullptr; | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue