Class mata::nfa::StatePost::MovesΒΆ

class Moves

Iterator over moves represented as Move instances.

It iterates over pairs (symbol, target) for the given StatePost.

Public Functions

Moves(const StatePost &state_post, StatePost::const_iterator symbol_post_it, StatePost::const_iterator symbol_post_end)

construct moves iterating over a range symbol_post_it (including) to symbol_post_end (excluding).

Parameters:
  • state_post – [in] State post to iterate over.

  • symbol_post_it – [in] First iterator over symbol posts to iterate over.

  • symbol_post_end – [in] End iterator over symbol posts (which functions as an sentinel; is not iterated over).

class const_iterator

Iterator over moves.

Public Functions

inline const_iterator()

Construct end iterator.

const_iterator(const StatePost &state_post)

Const all moves iterator.

const_iterator(const StatePost &state_post, StatePost::const_iterator symbol_post_it, StatePost::const_iterator symbol_post_it_end)

Construct iterator from symbol_post_it (including) to symbol_post_it_end (excluding).