sherpa::LexLoc Struct Reference

#include <LexLoc.hxx>


Public Member Functions

 LexLoc ()
 ~LexLoc ()
 LexLoc (const std::string &origin, unsigned line, unsigned offset)
 LexLoc (const LexLoc &ll)
LexLocoperator= (const LexLoc &ll)
bool operator== (const LexLoc &ll)
bool operator!= (const LexLoc &ll)
std::string asString () const
const char * c_str () const
LexLoc operator+ (size_t sz) const
void updateWith (const std::string &s)
LexLoc with (const std::string &s)

Data Fields

std::string origin
unsigned line
unsigned offset


Detailed Description

Definition at line 44 of file LexLoc.hxx.


Constructor & Destructor Documentation

sherpa::LexLoc::LexLoc (  )  [inline]

Definition at line 49 of file LexLoc.hxx.

References line, offset, and origin.

Referenced by operator+(), and with().

sherpa::LexLoc::~LexLoc (  )  [inline]

Definition at line 56 of file LexLoc.hxx.

sherpa::LexLoc::LexLoc ( const std::string &  origin,
unsigned  line,
unsigned  offset 
) [inline]

Definition at line 60 of file LexLoc.hxx.

sherpa::LexLoc::LexLoc ( const LexLoc ll  )  [inline]

Definition at line 67 of file LexLoc.hxx.

References line, offset, and origin.


Member Function Documentation

std::string sherpa::LexLoc::asString (  )  const

Definition at line 53 of file LexLoc.cxx.

References line, offset, and origin.

Referenced by acyclic(), c_str(), TypeScheme::checkAmbiguity(), sherpa::operator<<(), PropagateMutability(), typeError(), Unify(), and useIFInsts().

const char * sherpa::LexLoc::c_str (  )  const

Definition at line 66 of file LexLoc.cxx.

References asString().

bool sherpa::LexLoc::operator!= ( const LexLoc ll  )  [inline]

Definition at line 89 of file LexLoc.hxx.

References line, offset, and origin.

LexLoc sherpa::LexLoc::operator+ ( size_t  sz  )  const [inline]

Definition at line 100 of file LexLoc.hxx.

References LexLoc(), line, offset, and origin.

LexLoc& sherpa::LexLoc::operator= ( const LexLoc ll  )  [inline]

Definition at line 74 of file LexLoc.hxx.

References line, offset, and origin.

bool sherpa::LexLoc::operator== ( const LexLoc ll  )  [inline]

Definition at line 82 of file LexLoc.hxx.

References line, offset, and origin.

void sherpa::LexLoc::updateWith ( const std::string &  s  ) 

Definition at line 72 of file LexLoc.cxx.

References line, offset, s, and sherpa::utf8_decode().

LexLoc sherpa::LexLoc::with ( const std::string &  s  ) 

Definition at line 108 of file LexLoc.cxx.

References LexLoc(), line, offset, origin, s, and sherpa::utf8_decode().


Field Documentation

unsigned sherpa::LexLoc::line

Definition at line 46 of file LexLoc.hxx.

Referenced by asString(), LexLoc(), operator!=(), operator+(), operator=(), operator==(), updateWith(), and with().

unsigned sherpa::LexLoc::offset

Definition at line 47 of file LexLoc.hxx.

Referenced by asString(), LexLoc(), operator!=(), operator+(), operator=(), operator==(), updateWith(), and with().

std::string sherpa::LexLoc::origin

Definition at line 45 of file LexLoc.hxx.

Referenced by asString(), LexLoc(), operator!=(), operator+(), operator=(), operator==(), and with().


The documentation for this struct was generated from the following files:
Generated on Wed Sep 8 07:59:29 2010 for BitC Compiler by  doxygen 1.4.7