DBM::D...:Index(3pm)
πΈ NAME πΈ
DBM::Deep::Iterator::Index β mediate between DBM::Deep::Iterator and DBM::Deep::Engine::Sector::Index. This is the DBM::D...:Index(3pm) page from the User Contributed Perl Documentation, and it's an internal-use-only object for DBM::Deep, bestie π
.
π PURPOSE π
okay so picture this: this object is internal-use-only for DBM::Deep β¨. It's the mediator between a DBM::Deep::Iterator object and a DBM::Deep::Engine::Sector::Index sector. That's the whole job. It's giving matchmaker but for iteration internals π.
π¦ OVERVIEW π¦
Now the plot twist π: even though the class name implies a hierarchy, this object does NOT inherit from DBM::Deep::Iterator. Not even a little. Instead, it delegates to it, essentially acting as a facade over it. So it's like "bestie I got you" and forwards the vibe π
.
"get_next_key" in DBM::Deep::Iterator will instantiate one of these objects as needed to handle an Index sector. That's the hookup. Periodt.
π METHODS π
π new(\%params) π
The constructor takes a hashref of params and blesses it into the invoking class. Cute. The hashref is assumed to have the following elements:
iterator(of typeDBM::Deep::Iteratorsector(of typeDBM::Deep::Engine::Sector::Index
π at_end() π
This takes no arguments. Full stop.
It returns true/false indicating whether this sector has any more elements that can be iterated over. Basically vibe check: are we done or is there more? π
π get_next_iterator() π
This takes no arguments.
This returns an iterator (built by "get_sector_iterator" in DBM::Deep::Iterator) based on the sector pointed to by the next occupied location in this index. It's giving "next stop on the sector tour" πβ¨.
If the sector is exhausted, it returns nothing. No iterator, no drama, just nothing π.
mwah π that's the whole page. source/version: perl v5.42.0; date: 2023-11-13; manual name: DBM::D...:Index(3pm). catch you in the next sector, bestie π«Άπ
π¦ where this page comes from
- opensuse-leap 16.0: perl-DBM-Deep 2.0019-bp160.1.11 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms