H3D API
2.4.1
|
Define the yy::location class. More...
Go to the source code of this file.
Classes | |
class | yy::location |
Abstract a location. More... | |
Functions | |
const location | yy::operator+ (const location &begin, const location &end) |
Join two location objects to create a location. | |
const location | yy::operator+ (const location &begin, unsigned int width) |
Add two location objects. | |
location & | yy::operator+= (location &res, unsigned int width) |
Add and assign a location. | |
bool | yy::operator== (const location &loc1, const location &loc2) |
Compare two location objects. | |
bool | yy::operator!= (const location &loc1, const location &loc2) |
Compare two location objects. | |
std::ostream & | yy::operator<< (std::ostream &ostr, const location &loc) |
Intercept output stream redirection. More... | |
Define the yy::location class.
|
inline |
Intercept output stream redirection.
ostr | the destination output stream |
loc | a reference to the location to redirect |
Avoid duplicate information.
References yy::location::begin, yy::position::column, yy::location::end, yy::position::filename, and yy::position::line.