![]() |
mutable
A Database System for Research and Fast Prototyping
|
#include <Position.hpp>
Public Member Functions | |
Position (const char *name) | |
Position (const char *name, const size_t line, const size_t column) | |
bool | operator== (Position other) const |
bool | operator!= (Position other) const |
void | dump (std::ostream &out) const |
void | dump () const |
Data Fields | |
const char * | name |
unsigned | line |
unsigned | column |
Friends | |
M_LCOV_EXCL_START friend std::string | to_string (const Position &pos) |
std::ostream & | operator<< (std::ostream &os, const Position &pos) |
Definition at line 11 of file Position.hpp.
|
inlineexplicit |
Definition at line 17 of file Position.hpp.
|
inlineexplicit |
Definition at line 23 of file Position.hpp.
M_LCOV_EXCL_START void Position::dump | ( | ) | const |
|
inline |
Definition at line 45 of file Position.hpp.
|
inline |
Definition at line 32 of file Position.hpp.
References operator==().
|
inline |
Definition at line 29 of file Position.hpp.
References m::and, column, line, name, and m::streq().
Referenced by operator!=().
|
friend |
Definition at line 41 of file Position.hpp.
|
friend |
Definition at line 35 of file Position.hpp.
unsigned m::Position::column |
Definition at line 15 of file Position.hpp.
Referenced by operator==(), m::Diagnostic::print_pos(), m::DSVReader::step(), and m::ast::Lexer::step().
unsigned m::Position::line |
Definition at line 14 of file Position.hpp.
Referenced by operator==(), m::Diagnostic::print_pos(), m::DSVReader::step(), and m::ast::Lexer::step().
const char* m::Position::name |
Definition at line 13 of file Position.hpp.
Referenced by operator==(), and m::Diagnostic::print_pos().