librostlab-blast
1.0.1
|
Two points in a source file. More...
#include <blast-parser-location.h>
Public Types | |
typedef position::counter_type | counter_type |
Type for line and column numbers. More... | |
Public Member Functions | |
location (const position &b, const position &e) | |
Construct a location from b to e. More... | |
location (const position &p=position()) | |
Construct a 0-width location in p. More... | |
location (std::string *f, counter_type l=1, counter_type c=1) | |
Construct a 0-width location in f, l, c. More... | |
void | initialize (std::string *f=YY_NULLPTR, counter_type l=1, counter_type c=1) |
Initialization. More... | |
Line and Column related manipulators | |
void | step () |
Reset initial location to final location. More... | |
void | columns (counter_type count=1) |
Extend the current location to the COUNT next columns. More... | |
void | lines (counter_type count=1) |
Extend the current location to the COUNT next lines. More... | |
Public Attributes | |
position | begin |
Beginning of the located region. More... | |
position | end |
End of the located region. More... | |
Two points in a source file.
Definition at line 182 of file blast-parser-location.h.
Type for line and column numbers.
Definition at line 186 of file blast-parser-location.h.
Construct a location from b to e.
Definition at line 189 of file blast-parser-location.h.
Construct a 0-width location in p.
Definition at line 195 of file blast-parser-location.h.
|
inlineexplicit |
Construct a 0-width location in f, l, c.
Definition at line 201 of file blast-parser-location.h.
|
inline |
Extend the current location to the COUNT next columns.
Definition at line 228 of file blast-parser-location.h.
|
inline |
Initialization.
Definition at line 210 of file blast-parser-location.h.
|
inline |
Extend the current location to the COUNT next lines.
Definition at line 234 of file blast-parser-location.h.
|
inline |
Reset initial location to final location.
Definition at line 222 of file blast-parser-location.h.
position rostlab::blast::location::begin |
Beginning of the located region.
Definition at line 243 of file blast-parser-location.h.
position rostlab::blast::location::end |
End of the located region.
Definition at line 245 of file blast-parser-location.h.