H3D API
2.4.1
|
Define the yy::position class. More...
#include <iostream>
#include <string>
#include <algorithm>
Go to the source code of this file.
Classes | |
class | yy::position |
Abstract a position. More... | |
Functions | |
const position & | yy::operator+= (position &res, const int width) |
Add and assign a position. | |
const position | yy::operator+ (const position &begin, const int width) |
Add two position objects. | |
const position & | yy::operator-= (position &res, const int width) |
Add and assign a position. | |
const position | yy::operator- (const position &begin, const int width) |
Add two position objects. | |
bool | yy::operator== (const position &pos1, const position &pos2) |
Compare two position objects. | |
bool | yy::operator!= (const position &pos1, const position &pos2) |
Compare two position objects. | |
std::ostream & | yy::operator<< (std::ostream &ostr, const position &pos) |
Intercept output stream redirection. More... | |
Define the yy::position class.
|
inline |
Intercept output stream redirection.
ostr | the destination output stream |
pos | a reference to the position to redirect |
References yy::position::column, yy::position::filename, and yy::position::line.