Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Window Struct Template Reference
[Utility constructs for Vaucanson]

Handle windows in streams for performing regular expression search. More...

List of all members.

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 ()


Detailed Description

template<class InputIterator, class Letter>
struct utility::Window< InputIterator, Letter >

Handle windows in streams for performing regular expression search.

A window is a portion of a stream, viewable as a string, on which several operations can be performed:

A window has a constant size, unless an end of line ('
') or an end of file occurs, in which case a window is shorter than its supposed size.

Parameters:
InputIterator The type of input iterator used to read the stream. It shall be a random access iterator.
Letter The type used for letters.
Author:
Thomas Claveirole <thomas@lrde.epita.fr>


Generated on Thu Dec 18 14:14:23 2003 for Vaucanson by doxygen 1.3.4