lemon/iterable_maps.h
changeset 1955 daca31868d70
parent 1931 6abf67b02ff5
child 1956 a055123339d5
equal deleted inserted replaced
9:834ab07d5be3 10:196716cd95f7
   197       
   197       
   198       /// \brief Creates an iterator.
   198       /// \brief Creates an iterator.
   199       ///
   199       ///
   200       /// Creates an iterator. It iterates on the 
   200       /// Creates an iterator. It iterates on the 
   201       /// keys which mapped to true.
   201       /// keys which mapped to true.
   202       /// \param map The IterableIntMap
   202       /// \param _map The IterableIntMap
   203       TrueIt(const IterableBoolMap& _map) 
   203       TrueIt(const IterableBoolMap& _map) 
   204         : Parent(_map.sep > 0 ? _map.array[_map.sep - 1] : INVALID), 
   204         : Parent(_map.sep > 0 ? _map.array[_map.sep - 1] : INVALID), 
   205           map(&_map) {}
   205           map(&_map) {}
   206 
   206 
   207       /// \brief Invalid constructor \& conversion.
   207       /// \brief Invalid constructor \& conversion.
   237       
   237       
   238       /// \brief Creates an iterator.
   238       /// \brief Creates an iterator.
   239       ///
   239       ///
   240       /// Creates an iterator. It iterates on the 
   240       /// Creates an iterator. It iterates on the 
   241       /// keys which mapped to false.
   241       /// keys which mapped to false.
   242       /// \param map The IterableIntMap
   242       /// \param _map The IterableIntMap
   243       FalseIt(const IterableBoolMap& _map) 
   243       FalseIt(const IterableBoolMap& _map) 
   244         : Parent(_map.sep < (int)_map.array.size() ? 
   244         : Parent(_map.sep < (int)_map.array.size() ? 
   245                  _map.array.back() : INVALID), map(&_map) {}
   245                  _map.array.back() : INVALID), map(&_map) {}
   246 
   246 
   247       /// \brief Invalid constructor \& conversion.
   247       /// \brief Invalid constructor \& conversion.
   276       
   276       
   277       /// \brief Creates an iterator.
   277       /// \brief Creates an iterator.
   278       ///
   278       ///
   279       /// Creates an iterator. It iterates on the 
   279       /// Creates an iterator. It iterates on the 
   280       /// keys which mapped to false.
   280       /// keys which mapped to false.
   281       /// \param map The IterableIntMap
   281       /// \param _map The IterableIntMap
   282       /// \param value Which elements should be iterated.
   282       /// \param value Which elements should be iterated.
   283       ItemIt(const IterableBoolMap& _map, bool value) 
   283       ItemIt(const IterableBoolMap& _map, bool value) 
   284         : Parent(value ? (_map.sep > 0 ? _map.array[_map.sep - 1] : INVALID) :
   284         : Parent(value ? (_map.sep > 0 ? _map.array[_map.sep - 1] : INVALID) :
   285                  (_map.sep < (int)_map.array.size() ? 
   285                  (_map.sep < (int)_map.array.size() ? 
   286                   _map.array.back() : INVALID)), map(&_map) {}
   286                   _map.array.back() : INVALID)), map(&_map) {}