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 56 of file location.hh.


Constructor & Destructor Documentation

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

Construct a location.

Definition at line 61 of file location.hh.


Member Function Documentation

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

Extend the current location to the COUNT next columns.

Definition at line 84 of file location.hh.

References end.

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

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

Initialization.

Definition at line 68 of file location.hh.

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

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

Extend the current location to the COUNT next lines.

Definition at line 90 of file location.hh.

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

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

Reset initial location to final location.

Definition at line 78 of file location.hh.

References begin, and end.


Member Data Documentation

Beginning of the located region.

Definition at line 99 of file location.hh.

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

End of the located region.

Definition at line 101 of file location.hh.

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


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

Generated on Sat Sep 5 10:26:25 2009 for Flex Bison C++ Example by  doxygen 1.5.9