src/hugo/array_map.h
changeset 830 89dfa3bece81
parent 822 88226d9fe821
child 844 9bf990cb066d
equal deleted inserted replaced
0:6239d20c7029 1:9eab62d796b2
   249      */
   249      */
   250     ConstIterator end() const {
   250     ConstIterator end() const {
   251       return ConstIterator(*this, INVALID);
   251       return ConstIterator(*this, INVALID);
   252     }
   252     }
   253 
   253 
       
   254     /// The KeySet of the Map.
       
   255     typedef MapConstKeySet<ArrayMap> ConstKeySet;
       
   256 
       
   257     /// KeySet getter function.
       
   258     ConstKeySet keySet() const {
       
   259       return ConstKeySet(*this); 
       
   260     }
       
   261 
       
   262     /// The ConstValueSet of the Map.
       
   263     typedef MapConstValueSet<ArrayMap> ConstValueSet;
       
   264 
       
   265     /// ConstValueSet getter function.
       
   266     ConstValueSet valueSet() const {
       
   267       return ConstValueSet(*this);
       
   268     }
       
   269 
       
   270     /// The ValueSet of the Map.
       
   271     typedef MapValueSet<ArrayMap> ValueSet;
       
   272 
       
   273     /// ValueSet getter function.
       
   274     ValueSet valueSet() {
       
   275       return ValueSet(*this);
       
   276     }
       
   277 
   254   private:
   278   private:
   255       
   279       
   256     void allocate_memory() {
   280     void allocate_memory() {
   257       int max_id = -1;
   281       int max_id = -1;
   258       for (KeyIt it(*MapBase::getGraph()); it != INVALID; ++it) {
   282       for (KeyIt it(*MapBase::getGraph()); it != INVALID; ++it) {