mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	Add Const::{begin,end,empty}()
This commit is contained in:
		
							parent
							
								
									9fef1df3c1
								
							
						
					
					
						commit
						279fd22ddf
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -609,8 +609,11 @@ struct RTLIL::Const
 | 
			
		|||
	std::string decode_string() const;
 | 
			
		||||
 | 
			
		||||
	inline int size() const { return bits.size(); }
 | 
			
		||||
	inline bool empty() const { return bits.empty(); }
 | 
			
		||||
	inline RTLIL::State &operator[](int index) { return bits.at(index); }
 | 
			
		||||
	inline const RTLIL::State &operator[](int index) const { return bits.at(index); }
 | 
			
		||||
	inline decltype(bits)::iterator begin() { return bits.begin(); }
 | 
			
		||||
	inline decltype(bits)::iterator end() { return bits.end(); }
 | 
			
		||||
 | 
			
		||||
	bool is_fully_zero() const;
 | 
			
		||||
	bool is_fully_ones() const;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue