Vcsn
2.2
Be Rational
|
Abstract a position. More...
#include <position.hh>
Public Member Functions | |
position (std::string *f=0, unsigned int l=1u, unsigned int c=1u) | |
Construct a position. More... | |
void | initialize (std::string *fn=0, unsigned int l=1u, unsigned int c=1u) |
Initialization. More... | |
Line and Column related manipulators | |
void | lines (int count=1) |
(line related) Advance to the COUNT next lines. More... | |
void | columns (int count=1) |
(column related) Advance to the COUNT next columns. More... | |
Public Attributes | |
std::string * | filename |
File name to which this position refers. More... | |
unsigned int | line |
Current line number. More... | |
unsigned int | column |
Current column number. More... | |
Static Private Member Functions | |
static unsigned int | add_ (unsigned int lhs, int rhs, unsigned int min) |
Compute max(min, lhs+rhs) (provided min <= lhs). More... | |
Abstract a position.
Definition at line 57 of file position.hh.
|
inlineexplicit |
Construct a position.
Definition at line 61 of file position.hh.
|
inlinestaticprivate |
Compute max(min, lhs+rhs) (provided min <= lhs).
Definition at line 109 of file position.hh.
Referenced by columns().
|
inline |
(column related) Advance to the COUNT next columns.
Definition at line 94 of file position.hh.
References add_(), and column.
|
inline |
Initialization.
Definition at line 72 of file position.hh.
References column, filename, and line.
Referenced by vcsn::rat::location::initialize().
|
inline |
(line related) Advance to the COUNT next lines.
Definition at line 84 of file position.hh.
Referenced by vcsn::rat::location::lines().
unsigned int vcsn::rat::position::column |
Current column number.
Definition at line 105 of file position.hh.
Referenced by columns(), initialize(), and vcsn::rat::operator<<().
std::string* vcsn::rat::position::filename |
File name to which this position refers.
Definition at line 101 of file position.hh.
Referenced by initialize(), and vcsn::rat::operator<<().
unsigned int vcsn::rat::position::line |