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 Fri Apr 8 21:14:48 2005 for spot by doxygen 1.4.0