|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Lazy iterator over ordered key/value pairs. More...
#include <tpl_file_bplus_map.H>
Public Member Functions | |
| Iterator () noexcept=default | |
| Construct an exhausted iterator. | |
| Iterator (typename tree_type::Iterator it) noexcept | |
| Wrap an underlying tree iterator. | |
| bool | has_curr () const noexcept |
| Return whether the iterator still points to an item. | |
| value_type | get_curr () const |
| Return the current key/value pair. | |
| Key | get_key () const |
| Return the current key. | |
| Value | get_value () const |
| Return the current mapped value. | |
| void | next_ne () |
| Advance to the next item. | |
| void | next () |
| Synonym for next_ne(). | |
Private Attributes | |
| tree_type::Iterator | it_ |
Lazy iterator over ordered key/value pairs.
The iterator wraps the backing tree iterator and converts records to pairs on demand. Any mutation of the owning map invalidates all iterators.
Definition at line 242 of file tpl_file_bplus_map.H.
|
defaultnoexcept |
Construct an exhausted iterator.
| Nothing. |
|
inlineexplicitnoexcept |
Wrap an underlying tree iterator.
| it | Tree iterator to adapt. |
| Nothing. |
Definition at line 256 of file tpl_file_bplus_map.H.
|
inline |
Return the current key/value pair.
| std::underflow_error | If the iterator is exhausted. |
Definition at line 272 of file tpl_file_bplus_map.H.
References Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::Iterator::get_curr(), Aleph::Gen_File_BPlus_Map< Key, Value, Compare, MinDegree, KeyCodec, ValueCodec >::Iterator::it_, and Aleph::Gen_File_BPlus_Map< Key, Value, Compare, MinDegree, KeyCodec, ValueCodec >::to_pair().
|
inline |
Return the current key.
| std::underflow_error | If the iterator is exhausted. |
Definition at line 281 of file tpl_file_bplus_map.H.
References Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::Iterator::get_curr(), and Aleph::Gen_File_BPlus_Map< Key, Value, Compare, MinDegree, KeyCodec, ValueCodec >::Iterator::it_.
|
inline |
Return the current mapped value.
| std::underflow_error | If the iterator is exhausted. |
Definition at line 290 of file tpl_file_bplus_map.H.
References Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::Iterator::get_curr(), and Aleph::Gen_File_BPlus_Map< Key, Value, Compare, MinDegree, KeyCodec, ValueCodec >::Iterator::it_.
|
inlinenoexcept |
Return whether the iterator still points to an item.
true if there is a current key/value pair. | Nothing. |
Definition at line 263 of file tpl_file_bplus_map.H.
References Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::Iterator::has_curr(), and Aleph::Gen_File_BPlus_Map< Key, Value, Compare, MinDegree, KeyCodec, ValueCodec >::Iterator::it_.
Referenced by TEST().
|
inline |
Synonym for next_ne().
| std::underflow_error | If the iterator is exhausted. |
Definition at line 306 of file tpl_file_bplus_map.H.
References Aleph::Gen_File_BPlus_Map< Key, Value, Compare, MinDegree, KeyCodec, ValueCodec >::Iterator::next_ne().
|
inline |
Advance to the next item.
| std::underflow_error | If the iterator is exhausted. |
Definition at line 298 of file tpl_file_bplus_map.H.
References Aleph::Gen_File_BPlus_Map< Key, Value, Compare, MinDegree, KeyCodec, ValueCodec >::Iterator::it_, and Aleph::Gen_File_BPlus_Tree< Key, Compare, MinDegree, Codec >::Iterator::next_ne().
Referenced by Aleph::Gen_File_BPlus_Map< Key, Value, Compare, MinDegree, KeyCodec, ValueCodec >::Iterator::next().
|
private |
Definition at line 244 of file tpl_file_bplus_map.H.
Referenced by Aleph::Gen_File_BPlus_Map< Key, Value, Compare, MinDegree, KeyCodec, ValueCodec >::Iterator::get_curr(), Aleph::Gen_File_BPlus_Map< Key, Value, Compare, MinDegree, KeyCodec, ValueCodec >::Iterator::get_key(), Aleph::Gen_File_BPlus_Map< Key, Value, Compare, MinDegree, KeyCodec, ValueCodec >::Iterator::get_value(), Aleph::Gen_File_BPlus_Map< Key, Value, Compare, MinDegree, KeyCodec, ValueCodec >::Iterator::has_curr(), and Aleph::Gen_File_BPlus_Map< Key, Value, Compare, MinDegree, KeyCodec, ValueCodec >::Iterator::next_ne().