SrcLoc Class Reference

#include <Location.H>

Collaboration diagram for SrcLoc:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SrcLoc ()
 SrcLoc (int linePos, int charPos, const Text &filename, ShortId sid)
SrcLocCopy ()
void Init (const Text &filename, ShortId sid)
bool IsNone () const

Public Attributes

Text file
ShortId shortId
int line
int character

Detailed Description

Definition at line 31 of file Location.H.


Constructor & Destructor Documentation

SrcLoc::SrcLoc (  )  [inline]

Definition at line 33 of file Location.H.

SrcLoc::SrcLoc ( int  linePos,
int  charPos,
const Text filename,
ShortId  sid 
) [inline]

Definition at line 36 of file Location.H.


Member Function Documentation

SrcLoc* SrcLoc::Copy (  )  [inline]

Definition at line 47 of file Location.H.

References character, file, line, NEW_CONSTR, and shortId.

Referenced by Token::Next(), Token::ScanIdNumber(), Token::ScanPragma(), and Token::ScanText().

Here is the caller graph for this function:

void SrcLoc::Init ( const Text filename,
ShortId  sid 
) [inline]

Definition at line 51 of file Location.H.

References character, file, line, None, and shortId.

Referenced by Token::Init().

Here is the caller graph for this function:

bool SrcLoc::IsNone (  )  const [inline]

Definition at line 54 of file Location.H.

References character, line, and None.

Referenced by Error(), operator<<(), and Warning().

Here is the caller graph for this function:


Member Data Documentation

Text SrcLoc::file

Definition at line 38 of file Location.H.

Referenced by ApplicationFromCache(), ApplyFunction(), ApplyRunTool(), Copy(), Imports(), Init(), Map(), ModelVC::ModelVC(), operator<<(), PickleC::PickleVal(), RunToolFromCache(), and Token::ScanComment().

ShortId SrcLoc::shortId

Definition at line 43 of file Location.H.

Referenced by ApplicationFromCache(), Copy(), Init(), PickleC::PickleVal(), and Token::ScanComment().

int SrcLoc::line

Definition at line 44 of file Location.H.

Referenced by ApplicationFromCache(), Copy(), Init(), IsNone(), Token::Next(), operator<<(), PickleC::PickleLocation(), and PickleC::PickleVal().

int SrcLoc::character

Definition at line 45 of file Location.H.

Referenced by ApplicationFromCache(), Copy(), Init(), IsNone(), Token::Next(), operator<<(), and PickleC::PickleLocation().


The documentation for this class was generated from the following file:
Generated on Fri May 25 01:23:12 2007 for Vesta by  doxygen 1.5.1