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) |
| | fe/loc.h only declares the stream output and dump helpers.
|
Position in a source file; pass around as value.
Definition at line 10 of file loc.h.
◆ Pos() [1/3]
◆ Pos() [2/3]
| fe::Pos::Pos |
( |
uint16_t | row | ) |
|
|
inline |
Definition at line 12 of file loc.h.
References row.
◆ Pos() [3/3]
| fe::Pos::Pos |
( |
uint16_t | row, |
|
|
uint16_t | col ) |
|
inline |
◆ 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 |
fe/loc.h only declares the stream output and dump helpers.
Include fe/loc.cpp.h in exactly one translation unit for the default implementation, or provide your own definitions instead.
Definition at line 10 of file loc.cpp.h.
References col, Pos(), and row.
◆ 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: