ztsdb
|
Two points in a source file. More...
#include <location.hh>
Public Types | |
typedef position::counter_type | counter_type |
Type for line and column numbers. | |
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, counter_type l=1, counter_type c=1) | |
Construct a 0-width location in f, l, c. | |
void | initialize (std::string *f=YY_NULLPTR, counter_type l=1, counter_type c=1) |
Initialization. | |
Line and Column related manipulators | |
void | step () |
Reset initial location to final location. | |
void | columns (counter_type count=1) |
Extend the current location to the COUNT next columns. | |
void | lines (counter_type 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. | |
Two points in a source file.