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

A double array iterator. More...

#include <double_array_iterator.hpp>

+ Inheritance diagram for tetengo::trie::double_array_iterator:
+ Collaboration diagram for tetengo::trie::double_array_iterator:

Public Member Functions

 double_array_iterator ()
 Creates an iterator.
 
 double_array_iterator (const storage &storage_, std::size_t root_base_check_index)
 Creates an iterator.
 
const std::int32_t & operator* () const
 Dereferences the iterator.
 
std::int32_t & operator* ()
 Dereferences the iterator.
 
const std::int32_t * operator-> () const
 Returns the pointer to the value.
 
std::int32_t * operator-> ()
 Returns the pointer to the value.
 
double_array_iteratoroperator++ ()
 Increments the iterator.
 
double_array_iterator operator++ (int)
 Postincrements the iterator.
 

Friends

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

Detailed Description

A double array iterator.

Constructor & Destructor Documentation

◆ double_array_iterator() [1/2]

tetengo::trie::double_array_iterator::double_array_iterator ( )

Creates an iterator.

It points to the last of the double array.

◆ double_array_iterator() [2/2]

tetengo::trie::double_array_iterator::double_array_iterator ( const storage storage_,
std::size_t  root_base_check_index 
)

Creates an iterator.

Parameters
storage_A storage.
root_base_check_indexA root base-check index.

Member Function Documentation

◆ operator*() [1/2]

std::int32_t & tetengo::trie::double_array_iterator::operator* ( )

Dereferences the iterator.

Returns
The dereferenced value.

◆ operator*() [2/2]

const std::int32_t & tetengo::trie::double_array_iterator::operator* ( ) const

Dereferences the iterator.

Returns
The dereferenced value.

◆ operator++() [1/2]

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

Increments the iterator.

Returns
This iterator.

◆ operator++() [2/2]

double_array_iterator tetengo::trie::double_array_iterator::operator++ ( int  )

Postincrements the iterator.

Returns
The iterator before the incrementation.

◆ operator->() [1/2]

std::int32_t * tetengo::trie::double_array_iterator::operator-> ( )

Returns the pointer to the value.

Returns
The pointer to the value.

◆ operator->() [2/2]

const std::int32_t * tetengo::trie::double_array_iterator::operator-> ( ) const

Returns the pointer to the value.

Returns
The pointer to the value.

Friends And Related Symbol Documentation

◆ operator==

bool operator== ( const double_array_iterator one,
const double_array_iterator 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: