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
location.hh File Reference
`#include <iostream>`
`#include <string>`
`#include "position.hh"`

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

## Detailed Description

Define the yy::location class.

Definition in file location.hh.

## Function Documentation

std::ostream& yy::operator<< | ( | std::ostream & | ostr,
|  | const location & | loc
| ) |  |
| inline

Intercept output stream redirection.

Parameters

  ostr | the destination output stream
  loc | a reference to the location to redirect

Avoid duplicate information.

Definition at line 128 of file location.hh.

References yy::location::begin, yy::position::column, yy::location::end, yy::position::filename, and yy::position::line.

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