QJson home page
position.hh File Reference
#include <algorithm>
#include <iostream>
#include <string>

Go to the source code of this file.

Classes

class  yy::position
 Abstract a position. More...
 

Functions

positionyy::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.
 
positionyy::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.
 
template<typename YYChar >
std::basic_ostream< YYChar > & yy::operator<< (std::basic_ostream< YYChar > &ostr, const position &pos)
 Intercept output stream redirection.
 

Detailed Description

Define the yy::position class.

Definition in file position.hh.

Function Documentation

◆ operator<<()

template<typename YYChar >
std::basic_ostream< YYChar > & yy::operator<< ( std::basic_ostream< YYChar > & ostr,
const position & pos )
inline

Intercept output stream redirection.

Parameters
ostrthe destination output stream
posa reference to the position to redirect

Definition at line 150 of file position.hh.


SourceForge Logo hosts this site. Send comments to:
QJson Developers