Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

location.hh File Reference

#include <iostream>
#include <string>
#include "position.hh"

Include dependency graph for location.hh:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  yy

Functions

const Location operator+ (const Location &begin, const Location &end)
 Join two Location objects to create a Location.
const Location operator+ (const Location &begin, unsigned int width)
 Add two Location objects.
Location & operator+= (Location &res, unsigned int width)
 Add and assign a Location.
std::ostream & operator<< (std::ostream &ostr, const Location &loc)
 Intercept output stream redirection.


Detailed Description

Define the Location class.

Function Documentation

const Location operator+ const Location &  begin,
unsigned int  width
[inline]
 

Add two Location objects.

const Location operator+ const Location &  begin,
const Location &  end
[inline]
 

Join two Location objects to create a Location.

Location& operator+= Location &  res,
unsigned int  width
[inline]
 

Add and assign a Location.

std::ostream& 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.


Please comment this page and report errors about it on the RefDocComments page.
Generated on Mon Jan 31 12:54:43 2005 for spot by doxygen 1.4.0