Zen
A cross-platform functional programming language
|
Class for maintaining cursor in input stream. More...
#include <Scanner.hpp>
Public Member Functions | |
cursor (Scanner &scanner) | |
Default constructor. | |
int | operator* () |
Get current character that has been read from the input stream. | |
cursor & | operator++ () |
Advance input stream. | |
cursor & | operator= (const cursor &src) |
Assign one cursor to another. | |
Private Attributes | |
Scanner & | _scanner |
The scanner instance. | |
int | _pos |
Position in scanner. |
Class for maintaining cursor in input stream.
Default constructor.
scanner | Reference to input stream scanner |
int operator* | ( | ) | [inline] |
Get current character that has been read from the input stream.
cursor& operator++ | ( | ) | [inline] |
Advance input stream.
Assign one cursor to another.
src | Source instance |