senf::console::ParseCommandInfo::ArgumentIterator Class Reference

Iterator parsing argument groups. More...

#include <senf/Utils/Console/Parse.hh>

Inheritance diagram for senf::console::ParseCommandInfo::ArgumentIterator:

Public Member Functions

 ArgumentIterator ()
 
 ArgumentIterator (ParseCommandInfo::TokensRange::iterator i)
 

Detailed Description

Iterator parsing argument groups.

This special iterator parses a token range returned by the parser into argument ranges. An argument range is either a single token or it is a range of tokens enclosed in matching parenthesis. The ParseCommandInfo::arguments() uses this iterator type. To recursively parse complex arguments, you can however use this iterator to divide a multi-token argument into further argument groups (e.g. to parse a list or vector of items).

This iterator is a bidirectional iterator not a random access iterator.

Definition at line 442 of file Parse.hh.

Constructor & Destructor Documentation

◆ ArgumentIterator() [1/2]

senf::console::ParseCommandInfo::ArgumentIterator::ArgumentIterator ( )

◆ ArgumentIterator() [2/2]

senf::console::ParseCommandInfo::ArgumentIterator::ArgumentIterator ( ParseCommandInfo::TokensRange::iterator  i)
explicit

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