GammaRay API Documentation
2.8.1
|
Specifies a source code location. More...
#include <sourcelocation.h>
Public Member Functions | |
SourceLocation () | |
SourceLocation (const QUrl &url, int line=0, int column=0) | |
int | column () const |
QString | displayString () const |
bool | isValid () const |
int | line () const |
void | setColumn (int column) |
void | setLine (int line) |
void | setUrl (const QUrl &url) |
QUrl | url () const |
Friends | |
QDataStream & | operator<< (QDataStream &out, const SourceLocation &location) |
QDataStream & | operator>> (QDataStream &in, SourceLocation &location) |
Specifies a source code location.
A source location consists of a document and cursor position
A Cursor represents a position in a Document through a tuple of two ints, namely the line() and column().
Notes
GammaRay::SourceLocation::SourceLocation | ( | ) |
The default constructor creates a (invalid) cursor at position (-1, -1) with an invalid url
|
explicit |
This constructor creates a (valid) cursor at position (0, 0) with url
QString GammaRay::SourceLocation::displayString | ( | ) | const |
Returns a human-readable version of this source location