mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-03 21:09:11 +00:00 
			
		
		
		
	expose iterator api of obj_hashtable
This commit is contained in:
		
							parent
							
								
									f3019a3de9
								
							
						
					
					
						commit
						372e8b3c49
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -70,6 +70,7 @@ public:
 | 
			
		|||
            m_value(v) {
 | 
			
		||||
        }
 | 
			
		||||
        Value const & get_value() const { return m_value; }
 | 
			
		||||
        Key & get_key () const { return *m_key; }
 | 
			
		||||
        unsigned hash() const { return m_key->hash(); }
 | 
			
		||||
        bool operator==(key_data const & other) const { return m_key == other.m_key; }
 | 
			
		||||
    };
 | 
			
		||||
| 
						 | 
				
			
			@ -100,6 +101,8 @@ public:
 | 
			
		|||
        m_table(DEFAULT_HASHTABLE_INITIAL_CAPACITY) {}
 | 
			
		||||
    
 | 
			
		||||
    typedef typename table::iterator iterator;
 | 
			
		||||
    typedef typename table::data data;
 | 
			
		||||
    typedef typename table::entry entry;
 | 
			
		||||
    typedef Key    key;
 | 
			
		||||
    typedef Value  value;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue