Position in a source file; pass around as value.
More...
#include <fe/loc.h>
|
uint16_t | row = 0 |
|
uint16_t | col = 0 |
|
|
std::ostream & | operator<< (std::ostream &os, Pos pos) |
| Write your own implementation or include fe/loc.cpp.h somewhere for a default one.
|
|
Position in a source file; pass around as value.
Definition at line 10 of file loc.h.
◆ Pos() [1/3]
Creates an invalid Position.
◆ Pos() [2/3]
fe::Pos::Pos |
( |
uint16_t | row | ) |
|
|
inline |
Definition at line 12 of file loc.h.
◆ Pos() [3/3]
fe::Pos::Pos |
( |
uint16_t | row, |
|
|
uint16_t | col ) |
|
inline |
Definition at line 14 of file loc.h.
◆ dump()
void fe::Pos::dump |
( |
| ) |
const |
◆ operator bool()
fe::Pos::operator bool |
( |
| ) |
const |
|
inlineexplicit |
Is a valid Position?
Definition at line 18 of file loc.h.
References row.
◆ operator<=>()
auto fe::Pos::operator<=> |
( |
const Pos & | | ) |
const |
|
default |
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & | os, |
|
|
Pos | pos ) |
|
friend |
Write your own implementation or include fe/loc.cpp.h somewhere for a default one.
Definition at line 6 of file loc.cpp.h.
◆ col
uint16_t fe::Pos::col = 0 |
◆ row
uint16_t fe::Pos::row = 0 |
The documentation for this struct was generated from the following files: