Public Member Functions | |
| Window (const iterator_t &stream, const iterator_t &eof, letter_t eol, length_t length) | |
| @ brief Standard constructor for the Window class. | |
| bool | eof () const |
| Indicates wether the end of the stream has been reached or not. | |
| bool | eol () const |
| Indicates wether a new line has been reached or not. | |
| void | moveto (length_t offset) |
| Move to a specific offset. | |
| length_t | size () const |
| Returns the actual window size. | |
| letter_t | operator[] (length_t i) const |
| Returns the i-th character of the window. | |
| std::ostream & | print (std::ostream &ostr) const |
| Print the window. | |
| iterator_t | begin () const |
| Accessor to class members. | |
| void | shift (unsigned int n) |
| void | shift () |
A window is a portion of a stream, viewable as a string, on which several operations can be performed:
| InputIterator | The type of input iterator used to read the stream. It shall be a random access iterator. |
| Letter | The type used for letters. |
1.3.4