Public Member Functions | Public Attributes

sautyy::location Class Reference

Abstract a location. More...

#include <sautparse/location.hh>

Collaboration diagram for sautyy::location:
Collaboration graph
[legend]

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.


Constructor & Destructor Documentation

sautyy::location::location (  )  [inline]

Construct a location.


Member Function Documentation

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

Extend the current location to the COUNT next columns.

References begin, and end.

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

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

Initialization.

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

Extend the current location to the COUNT next lines.

References end.

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

Reset initial location to final location.


Member Data Documentation

Beginning of the located region.

Referenced by columns().

End of the located region.

Referenced by columns(), lines(), and sautyy::operator+().


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

Please comment this page and report errors about it on the RefDocComments page.
Generated on Mon Feb 7 2011 14:29:30 for spot by doxygen 1.7.1