QJson home page

yy::location Class Reference

Abstract a location. More...

#include <location.hh>

List of all members.

Public Member Functions

 location (const position &b, const position &e)
 Construct a location from b to e.
 location (const position &p=position())
 Construct a 0-width location in p.
 location (std::string *f, unsigned int l=1u, unsigned int c=1u)
 Construct a 0-width location in f, l, c.
void initialize (std::string *f=YY_NULL, unsigned int l=1u, unsigned int c=1u)
 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 49 of file location.hh.


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

SourceForge Logo hosts this site. Send comments to:
QJson Developers