tetengo 1.8.1
A multipurpose library set
Loading...
Searching...
No Matches
tetengo::trie::trie_iterator_impl Class Reference

An implementation of trie iterator. More...

#include <trie_iterator.hpp>

Public Member Functions

 trie_iterator_impl (double_array_iterator double_array_iterator_, storage &storage_)
 Creates an iterator.
 
 trie_iterator_impl ()
 Creates an iterator.
 
const std::any & operator* () const
 Dereferences the iterator.
 
std::any & operator* ()
 Dereferences the iterator.
 
trie_iterator_imploperator++ ()
 Increments the iterator.
 

Friends

bool operator== (const trie_iterator_impl &one, const trie_iterator_impl &another)
 Returns true when one iterator is equal to another.
 

Detailed Description

An implementation of trie iterator.

Constructor & Destructor Documentation

◆ trie_iterator_impl() [1/2]

tetengo::trie::trie_iterator_impl::trie_iterator_impl ( double_array_iterator  double_array_iterator_,
storage storage_ 
)

Creates an iterator.

Parameters
double_array_iterator_A double array iterator.
storage_A storage.

◆ trie_iterator_impl() [2/2]

tetengo::trie::trie_iterator_impl::trie_iterator_impl ( )

Creates an iterator.

It points to the last of the double array.

Member Function Documentation

◆ operator*() [1/2]

std::any & tetengo::trie::trie_iterator_impl::operator* ( )

Dereferences the iterator.

Returns
The dereferenced value.

◆ operator*() [2/2]

const std::any & tetengo::trie::trie_iterator_impl::operator* ( ) const

Dereferences the iterator.

Returns
The dereferenced value.

◆ operator++()

trie_iterator_impl & tetengo::trie::trie_iterator_impl::operator++ ( )

Increments the iterator.

Returns
This iterator.

Friends And Related Symbol Documentation

◆ operator==

bool operator== ( const trie_iterator_impl one,
const trie_iterator_impl another 
)
friend

Returns true when one iterator is equal to another.

Parameters
oneOne iterator.
anotherAnother iterator.
Return values
trueWhen one is equal to another.
falseOtherwise.

The documentation for this class was generated from the following file: