Provides explicit line/column information. More...
#include <Location.h>

Public Member Functions | |
| SourceLocation (unsigned line, unsigned column, const TextProvider *provider) | |
| Constructs a SourceLocation object.   | |
| SourceLocation () | |
| Constructs an uninitialized SourceLocation object.   | |
| unsigned | getLine () const | 
| Accesses the line coordinate.   | |
| unsigned | getColumn () const | 
| Accesses the column coordinate.   | |
| const TextProvider * | getTextProvider () const | 
| Accesses the associcated TextProvider.   | |
Provides explicit line/column information.
This class encapsulates explicit line/column information associated with a particular TextProvider.
SourceLocation objects are typically created via a call to TextProvider::getSourceLocation.
Definition at line 73 of file Location.h.
| comma::SourceLocation::SourceLocation | ( | unsigned | line, | |
| unsigned | column, | |||
| const TextProvider * | provider | |||
| ) |  [inline] | 
        
Constructs a SourceLocation object.
| line | The line coordinate. | |
| column | The column coordinate. | |
| provider | The TextProvider object this SourceLocation describes. | 
Definition at line 83 of file Location.h.
| comma::SourceLocation::SourceLocation | ( | ) |  [inline] | 
        
Constructs an uninitialized SourceLocation object.
Definition at line 87 of file Location.h.
| unsigned comma::SourceLocation::getColumn | ( | ) |  const [inline] | 
        
Accesses the column coordinate.
Definition at line 93 of file Location.h.
| unsigned comma::SourceLocation::getLine | ( | ) |  const [inline] | 
        
Accesses the line coordinate.
Definition at line 90 of file Location.h.
| const TextProvider* comma::SourceLocation::getTextProvider | ( | ) |  const [inline] | 
        
Accesses the associcated TextProvider.
Definition at line 96 of file Location.h.
 1.6.1