C-Breeze
C Compiler Infrastructure

[ Project home page]
Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Coord Class Reference

#include <coord.h>

List of all members.

Public Member Functions

 Coord (int line, short int offset, short int file)
 Coord (simpleCoord s)
int line () const
void line (int line)
short int offset () const
void offset (short int offset)
short int file () const
void file (short int file)
string & filename ()
void get ()
bool is_unknown () const
string to_string ()

Static Public Attributes

Coord Unknown

Private Attributes

int _line
short int _offset
short int _file

Friends

ostream & operator<< (ostream &, const Coord &)


Constructor & Destructor Documentation

Coord::Coord int    line,
short int    offset,
short int    file
[inline]
 

Definition at line 71 of file coord.h.

References file().

Coord::Coord simpleCoord    s
 

Definition at line 51 of file coord.cc.


Member Function Documentation

void Coord::file short int    file [inline]
 

Definition at line 86 of file coord.h.

short int Coord::file   const [inline]
 

Definition at line 85 of file coord.h.

Referenced by Coord(), get(), NodeLocator::match_coord(), operator<<(), to_string(), NodeInfo::writeExpr(), and NodeInfo::writeStmt().

string & Coord::filename  
 

Definition at line 142 of file coord.cc.

References _file, and CBZ::Files.

Referenced by vcgWalker::excluded().

void Coord::get  
 

Definition at line 89 of file coord.cc.

References cbtext, file(), lexer_line_start, line(), offset(), and TAB_WIDTH.

bool Coord::is_unknown   const [inline]
 

Definition at line 92 of file coord.h.

Referenced by Labels_table::notify_exit_scope().

void Coord::line int    line [inline]
 

Definition at line 80 of file coord.h.

int Coord::line   const [inline]
 

Definition at line 79 of file coord.h.

Referenced by vcgWalker::excluded(), get(), NodeLocator::match_coord(), vcgCCGWalker::node_label(), vcgASTWalker::node_label(), operator<<(), vcgCCGWalker::print_edge(), and to_string().

void Coord::offset short int    offset [inline]
 

Definition at line 83 of file coord.h.

short int Coord::offset   const [inline]
 

Definition at line 82 of file coord.h.

Referenced by get(), NodeLocator::match_coord(), vcgCCGWalker::node_label(), vcgASTWalker::node_label(), vcgCCGWalker::node_title(), vcgASTWalker::node_title(), operator<<(), and to_string().

string Coord::to_string  
 

Definition at line 125 of file coord.cc.

References file(), CBZ::Files, line(), and offset().

Referenced by id_lookup_walker::at_decl(), UnificationBasedPtr::at_suespec(), and NodeInfo::readsuef().


Friends And Related Function Documentation

ostream& operator<< ostream &    lhs,
const Coord &    rhs
[friend]
 

Definition at line 110 of file coord.cc.


Member Data Documentation

short int Coord::_file [private]
 

Definition at line 62 of file coord.h.

Referenced by filename().

int Coord::_line [private]
 

Definition at line 60 of file coord.h.

short int Coord::_offset [private]
 

Definition at line 61 of file coord.h.

Coord Coord::Unknown [static]
 

Referenced by vcgWalker::excluded(), and NodeInfo::getCoord().


The documentation for this class was generated from the following files:

Generated on August 27, 2003
Back to the C-Breeze home page