|
Joutsen.ArgumentsParsing v0.3.0+1-ga4c84ed
|
A list iterator that is aware of arguments and able to look ahead. More...
Public Member Functions | |
| string | NextValue (int skip=0) |
| Fetches the next value in the list and advances the iteration. More... | |
| string | Peek (int skip=0) |
| Fetches the next value in the list without advancing the iterator. More... | |
| string | NextArgument () |
| Advances the iterator to the next value in the list and applies preprocessing to the value. More... | |
Properties | |
| bool | HasMore [get] |
| Checks if the end of the list has been reached or additional values are available. More... | |
| Listable< string > | RemainingArguments [get] |
| The remaining values in the list which the iterator has not advanced to. More... | |
| Map< string, ArgumentLiteralParser > | NamedParsers [set] |
| A mapping from arguments identified by their name to their parsers. More... | |
| Set< string > | ArgumentPrefixes [set] |
| All possible prefixes of arguments identified by their names. More... | |
A list iterator that is aware of arguments and able to look ahead.
| string Joutsen.ArgumentsParsing.ArgumentsIterator.NextArgument | ( | ) |
Advances the iterator to the next value in the list and applies preprocessing to the value.
Implemented in Joutsen.ArgumentsParsing.Iterators.NormalisingArgumentsListIterator, and Joutsen.ArgumentsParsing.Iterators.SimpleArgumentsListIterator.
| string Joutsen.ArgumentsParsing.ArgumentsIterator.NextValue | ( | int | skip = 0 | ) |
Fetches the next value in the list and advances the iteration.
| skip | the number of arguments to skip when advancing to the next value |
Implemented in Joutsen.ArgumentsParsing.Iterators.NormalisingArgumentsListIterator, and Joutsen.ArgumentsParsing.Iterators.SimpleArgumentsListIterator.
| string Joutsen.ArgumentsParsing.ArgumentsIterator.Peek | ( | int | skip = 0 | ) |
Fetches the next value in the list without advancing the iterator.
This offers a look ahead before advancing.
| skip | the number of arguments to skip when looking ahead to the next value |
Implemented in Joutsen.ArgumentsParsing.Iterators.NormalisingArgumentsListIterator, and Joutsen.ArgumentsParsing.Iterators.SimpleArgumentsListIterator.
|
set |
All possible prefixes of arguments identified by their names.
Implemented in Joutsen.ArgumentsParsing.Iterators.SimpleArgumentsListIterator.
|
get |
Checks if the end of the list has been reached or additional values are available.
Implemented in Joutsen.ArgumentsParsing.Iterators.NormalisingArgumentsListIterator, and Joutsen.ArgumentsParsing.Iterators.SimpleArgumentsListIterator.
|
set |
A mapping from arguments identified by their name to their parsers.
Implemented in Joutsen.ArgumentsParsing.Iterators.SimpleArgumentsListIterator.
|
get |
The remaining values in the list which the iterator has not advanced to.
These values are not preprocessed.
Implemented in Joutsen.ArgumentsParsing.Iterators.NormalisingArgumentsListIterator, and Joutsen.ArgumentsParsing.Iterators.SimpleArgumentsListIterator.