|
tzutrader
A composable C++ backtesting library for trading strategies (experimental)
|
#include <streamers.h>
Public Member Functions | |
| ParseIterator (std::istream *input, bool end=false) | |
| ParseIterator & | operator++ () |
| const T & | operator* () const |
| const T * | operator-> () const |
| bool | operator== (const ParseIterator &other) const |
| bool | operator!= (const ParseIterator &other) const |
An text input iterator that reads lines from a stream and parses them into a specific data type.
|
inline |
Constructs an iterator that reads from the given input stream. If end is true, constructs an end iterator.
|
inline |
Compares two iterators for inequality.
|
inline |
Dereferences the iterator to access the current parsed value. The behavior is undefined if the iterator is at the end.
|
inline |
Advances the iterator to the next valid line in the input stream. Lines that fail to parse are skipped. If the end of the stream is reached, sets the end flag.
|
inline |
Provides pointer-like access to the current parsed value. The behavior is undefined if the iterator is at the end.
|
inline |
Compares two iterators for equality. Two iterators are considered equal if they are both end iterators or if they point to the same position in the input stream.