QJson - a Qt based library for mapping JSON data to QVariant objects

QJson home page

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List

Classes | Functions
position.hh File Reference
`#include <iostream>`
`#include <string>`

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.
std::ostream & | yy::operator<< (std::ostream &ostr, const position &pos)
| Intercept output stream redirection. More...

## Detailed Description

Define the yy::position class.

Definition in file position.hh.

## Function Documentation

std::ostream& yy::operator<< | ( | std::ostream & | ostr,
|  | const position & | pos
| ) |  |
| inline

Intercept output stream redirection.

Parameters

  ostr | the destination output stream
  pos | a reference to the position to redirect

Definition at line 134 of file position.hh.

References yy::position::column, yy::position::filename, and yy::position::line.

| hosts this site. |  | Send comments to: QJson Developers