lemon/map_iterator.h
changeset 2244 a28b4e0aa787
parent 1993 2115143eceea
child 2391 14a343be7a5a
equal deleted inserted replaced
3:5c0d6b43d84c 4:5fb7202a56ff
   122     
   122     
   123     /// \brief Creates an iterator
   123     /// \brief Creates an iterator
   124     ///
   124     ///
   125     /// Creates an iterator for the map, which iterates on the
   125     /// Creates an iterator for the map, which iterates on the
   126     /// given graph item set and filters all items which mapped value
   126     /// given graph item set and filters all items which mapped value
   127     /// differ from \c _value.
   127     /// is not equal to the \c _value.
   128     FilterMapIt(const Graph& _graph, const Map& _map, const Value& _value) 
   128     FilterMapIt(const Graph& _graph, const Map& _map, const Value& _value) 
   129       : Parent(_graph), map(_map), value(_value) {}
   129       : Parent(_graph), map(_map), value(_value) {}
   130     
   130     
   131     /// \brief Increment operator
   131     /// \brief Increment operator
   132     ///
   132     ///
   133     /// Skips items which has not the given value.
   133     /// Skips items which has not mapped to the given value.
   134     FilterMapIt& operator++() {
   134     FilterMapIt& operator++() {
   135       Parent::operator++();
   135       Parent::operator++();
   136       while (*this != INVALID && map[*this] != value) Parent::operator++();
   136       while (*this != INVALID && map[*this] != value) Parent::operator++();
   137     }
   137     }
   138     
   138