|
GCode Processor
|
Reads an input file line by line. More...
#include <InputFileIterator.h>
Public Types | |
| using | char_type = typename std::string::value_type |
| using | traits_type = typename std::string::traits_type |
| using | istream_type = std::basic_istream< char_type, traits_type > |
Public Member Functions | |
| InputFileIterator (istream_type &is) | |
| Construct and read the first line in. More... | |
| const std::string | operator* () const |
| Deference operator. More... | |
| decltype(auto) | operator-> () const |
| Arrow iterator. More... | |
| InputFileIterator & | operator++ () |
| Pre-increment operator (read line in). | |
| InputFileIterator | operator++ (int) |
| Post-increment operator (read line in). | |
Static Public Member Functions | |
| static const InputFileIterator & | end () |
| Returns an empty iterator. | |
Private Member Functions | |
| InputFileIterator () | |
| Default constructor (private). | |
Private Attributes | |
| istream_type * | InputStream_ |
Input stream pointer to file being read in by this. | |
| std::string | Value_ |
| Currently loaded line. | |
Friends | |
| const bool | operator== (const InputFileIterator &lhs, const InputFileIterator &rhs) |
| Equality operator; checks if pointers to streams are equal. | |
Reads an input file line by line.
|
inline |
Construct and read the first line in.
| is | Input stream to read from. |
|
inline |
Deference operator.
Value_ (i.e. a copy of Value_).
|
inline |
Arrow iterator.
i->m is the same as (*i).m.
1.8.11