Point Class Reference
#include <Point.h>
List of all members.
Detailed Description
Definition of "definition point" which stores
- filename
- line number
- inclusion point to trace filenames, definition points, and include hierachies.
This helps in issuing proper error messages like "identifier <name> defined in <file1> at <line1> included from <file2> at <line2> included from <toplevel> at <line>"
A TableEntry (identifier <name>) has a Point which stores the definition point (Point) of this identifier. If its Point is in an include file, the m_point member points to the inclusion point (where the 'include ".."' statement is) of the include file.
Point works as a linked list (file1 -> file2 -> toplevel in the above example) for definition points inside include files. The real structure is a tree since for the next include of file3 inside file2, the list is file3 -> file2 -> toplevel and the latter two nodes are shared.
An identifier has a definition point. A file has a filename and an inclusion point (if its an included file).
Constructor & Destructor Documentation
| Point::Point |
( |
std::string |
filename, |
|
|
int |
line = 0, |
|
|
const Point * |
point = 0 |
|
) |
|
|
| Point::Point |
( |
SymbolEntryPtr |
sentry, |
|
|
int |
line = 0, |
|
|
const Point * |
point = 0 |
|
) |
|
|
Member Function Documentation
| std::string Point::filename |
( |
void |
|
) |
const |
|
| int Point::line |
( |
void |
|
) |
const |
|
| size_t Point::mem_size |
( |
|
) |
const [inline] |
|
| const Point * Point::point |
( |
void |
|
) |
const |
|
| SymbolEntryPtr Point::sentry |
( |
void |
|
) |
const |
|
| std::ostream & Point::toStream |
( |
std::ostream & |
str |
) |
const |
|
| std::string Point::toString |
( |
void |
|
) |
const |
|
Member Data Documentation
The documentation for this class was generated from the following files:
Generated on Tue Apr 22 00:09:37 2008 for yast2-core by
1.4.6