example::location Class Reference

Abstract a location. More...

#include <location.hh>

List of all members.

Public Member Functions

 location ()
 Construct a location.
void initialize (std::string *fn)
 Initialization.
Line and Column related manipulators
void step ()
 Reset initial location to final location.
void columns (unsigned int count=1)
 Extend the current location to the COUNT next columns.
void lines (unsigned int count=1)
 Extend the current location to the COUNT next lines.

Public Attributes

position begin
 Beginning of the located region.
position end
 End of the located region.


Detailed Description

Abstract a location.

Definition at line 50 of file location.hh.


Constructor & Destructor Documentation

example::location::location (  )  [inline]

Construct a location.

Definition at line 55 of file location.hh.


Member Function Documentation

void example::location::initialize ( std::string *  fn  )  [inline]

Initialization.

Definition at line 61 of file location.hh.

References begin, end, and example::position::initialize().

void example::location::step (  )  [inline]

Reset initial location to final location.

Definition at line 71 of file location.hh.

References begin, and end.

void example::location::columns ( unsigned int  count = 1  )  [inline]

Extend the current location to the COUNT next columns.

Definition at line 77 of file location.hh.

References end.

Referenced by example::operator+(), and example::operator+=().

void example::location::lines ( unsigned int  count = 1  )  [inline]

Extend the current location to the COUNT next lines.

Definition at line 83 of file location.hh.

References end, and example::position::lines().


Member Data Documentation

Beginning of the located region.

Definition at line 92 of file location.hh.

Referenced by initialize(), example::operator<<(), example::Parser::parse(), and step().

End of the located region.

Definition at line 94 of file location.hh.

Referenced by columns(), initialize(), lines(), example::operator+(), example::operator<<(), example::Parser::parse(), and step().


The documentation for this class was generated from the following file:

Generated on Thu Oct 23 11:13:54 2008 for Flex Bison C++ Example by  doxygen 1.5.6