Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/GenPoly/ScopedSet.h

    rb8b6c442 r6b0b624  
    3838                typedef typename Scope::pointer pointer;
    3939                typedef typename Scope::const_pointer const_pointer;
    40 
     40               
    4141                class iterator : public std::iterator< std::bidirectional_iterator_tag,
    4242                                                       value_type > {
     
    7272                                return *this;
    7373                        }
    74 
     74                       
    7575                        reference operator* () { return *it; }
    7676                        pointer operator-> () { return it.operator->(); }
     
    104104                        bool operator!= (const iterator &that) { return !( *this == that ); }
    105105
    106                         size_type get_level() const { return i; }
    107 
    108106                private:
    109107                        scope_list const *scopes;
     
    182180                        bool operator!= (const const_iterator &that) { return !( *this == that ); }
    183181
    184                         size_type get_level() const { return i; }
    185 
    186182                private:
    187183                        scope_list const *scopes;
     
    189185                        size_type i;
    190186                };
    191 
     187               
    192188                /// Starts a new scope
    193189                void beginScope() {
     
    226222                        return const_iterator( const_cast< ScopedSet< Value >* >(this)->find( key ) );
    227223                }
    228 
     224               
    229225                /// Finds the given key in the outermost scope inside the given scope where it occurs
    230226                iterator findNext( const_iterator &it, const Value &key ) {
     
    246242                        return std::make_pair( iterator(scopes, res.first, scopes.size()-1), res.second );
    247243                }
    248 
     244               
    249245        };
    250246} // namespace GenPoly
Note: See TracChangeset for help on using the changeset viewer.