Changes in src/GenPoly/ScopedSet.h [b8b6c442:6b0b624]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/ScopedSet.h
rb8b6c442 r6b0b624 38 38 typedef typename Scope::pointer pointer; 39 39 typedef typename Scope::const_pointer const_pointer; 40 40 41 41 class iterator : public std::iterator< std::bidirectional_iterator_tag, 42 42 value_type > { … … 72 72 return *this; 73 73 } 74 74 75 75 reference operator* () { return *it; } 76 76 pointer operator-> () { return it.operator->(); } … … 104 104 bool operator!= (const iterator &that) { return !( *this == that ); } 105 105 106 size_type get_level() const { return i; }107 108 106 private: 109 107 scope_list const *scopes; … … 182 180 bool operator!= (const const_iterator &that) { return !( *this == that ); } 183 181 184 size_type get_level() const { return i; }185 186 182 private: 187 183 scope_list const *scopes; … … 189 185 size_type i; 190 186 }; 191 187 192 188 /// Starts a new scope 193 189 void beginScope() { … … 226 222 return const_iterator( const_cast< ScopedSet< Value >* >(this)->find( key ) ); 227 223 } 228 224 229 225 /// Finds the given key in the outermost scope inside the given scope where it occurs 230 226 iterator findNext( const_iterator &it, const Value &key ) { … … 246 242 return std::make_pair( iterator(scopes, res.first, scopes.size()-1), res.second ); 247 243 } 248 244 249 245 }; 250 246 } // namespace GenPoly
Note:
See TracChangeset
for help on using the changeset viewer.