An N-best lattice path iterator.
More...
#include <n_best_iterator.hpp>
An N-best lattice path iterator.
◆ n_best_iterator() [1/2]
tetengo::lattice::n_best_iterator::n_best_iterator |
( |
| ) |
|
Creates an iterator.
It points to the last of the paths.
◆ n_best_iterator() [2/2]
tetengo::lattice::n_best_iterator::n_best_iterator |
( |
const lattice & |
lattice_, |
|
|
node |
eos_node, |
|
|
std::unique_ptr< constraint > && |
p_constraint |
|
) |
| |
Creates an iterator.
- Parameters
-
lattice_ | A lattice. |
eos_node | An EOS node. |
p_constraint | A unique pointer to a constraint. |
- Exceptions
-
std::invalid_argument | When p_constraint is nullptr. |
◆ operator*() [1/2]
path & tetengo::lattice::n_best_iterator::operator* |
( |
| ) |
|
Dereferences the iterator.
- Returns
- The dereferenced value.
◆ operator*() [2/2]
const path & tetengo::lattice::n_best_iterator::operator* |
( |
| ) |
const |
Dereferences the iterator.
- Returns
- The dereferenced value.
◆ operator++() [1/2]
Increments the iterator.
- Returns
- This iterator.
◆ operator++() [2/2]
Postincrements the iterator.
- Returns
- The iterator before the incrementation.
◆ operator->() [1/2]
path * tetengo::lattice::n_best_iterator::operator-> |
( |
| ) |
|
Returns the pointer to the value.
- Returns
- The pointer to the value.
◆ operator->() [2/2]
const path * tetengo::lattice::n_best_iterator::operator-> |
( |
| ) |
const |
Returns the pointer to the value.
- Returns
- The pointer to the value.
◆ operator==
Returns true when one iterator is equal to another.
- Parameters
-
one | One iterator. |
another | Another iterator. |
- Return values
-
true | When one is equal to another. |
false | Otherwise. |
The documentation for this class was generated from the following file: