kdevplatform/language/editor
#include <cursorinrevision.h>
Public Member Functions | |
CursorInRevision () | |
CursorInRevision (int _line, int _column) | |
KTextEditor::Cursor | castToSimpleCursor () const |
bool | isValid () const |
bool | operator!= (const CursorInRevision &rhs) const |
CursorInRevision | operator+ (const CursorInRevision &rhs) const |
bool | operator< (const CursorInRevision &rhs) const |
bool | operator<= (const CursorInRevision &rhs) const |
bool | operator== (const CursorInRevision &rhs) const |
bool | operator> (const CursorInRevision &rhs) const |
bool | operator>= (const CursorInRevision &rhs) const |
Static Public Member Functions | |
static CursorInRevision | castFromSimpleCursor (const KTextEditor::Cursor &cursor) |
static CursorInRevision | invalid () |
Public Attributes | |
int | column = 0 |
int | line = 0 |
Friends | |
QDebug | operator<< (QDebug s, const CursorInRevision &cursor) |
Detailed Description
Represents a cursor (line-number and column-number) within a text document.
In KDevelop, this object is used when referencing a cursor that does not point into the most current document revision. Therefore, before applying such a cursor in the text documents, it has to be translated into the current document revision explicitly, thereby replaying eventual changes (see DUChainBase::translate...)
Definition at line 35 of file cursorinrevision.h.
Constructor & Destructor Documentation
◆ CursorInRevision() [1/2]
|
inline |
Definition at line 41 of file cursorinrevision.h.
◆ CursorInRevision() [2/2]
|
inline |
Definition at line 45 of file cursorinrevision.h.
Member Function Documentation
◆ castFromSimpleCursor()
|
inlinestatic |
- Warning
- Using this is wrong in most cases! If you want to transform this cursor to the current revision, you should do a proper mapping instead through KDevelop::DUChainBase or KDevelop::RevisionReference or KDevelop::DocumentChangeTracker
Definition at line 108 of file cursorinrevision.h.
◆ castToSimpleCursor()
|
inline |
- Warning
- Using this is wrong in most cases! If you want to transform this cursor to the current revision, you should do a proper mapping instead through KDevelop::DUChainBase or KDevelop::RevisionReference or KDevelop::DocumentChangeTracker
Definition at line 99 of file cursorinrevision.h.
◆ invalid()
|
inlinestatic |
Definition at line 50 of file cursorinrevision.h.
◆ isValid()
|
inline |
Definition at line 55 of file cursorinrevision.h.
◆ operator!=()
|
inline |
Definition at line 85 of file cursorinrevision.h.
◆ operator+()
|
inline |
Definition at line 90 of file cursorinrevision.h.
◆ operator<()
|
inline |
Definition at line 60 of file cursorinrevision.h.
◆ operator<=()
|
inline |
Definition at line 65 of file cursorinrevision.h.
◆ operator==()
|
inline |
Definition at line 80 of file cursorinrevision.h.
◆ operator>()
|
inline |
Definition at line 70 of file cursorinrevision.h.
◆ operator>=()
|
inline |
Definition at line 75 of file cursorinrevision.h.
Friends And Related Function Documentation
◆ operator<<
|
friend |
qDebug() stream operator. Writes this cursor to the debug output in a nicely formatted way.
Definition at line 114 of file cursorinrevision.h.
Member Data Documentation
◆ column
int KDevelop::CursorInRevision::column = 0 |
Definition at line 39 of file cursorinrevision.h.
◆ line
int KDevelop::CursorInRevision::line = 0 |
Definition at line 39 of file cursorinrevision.h.
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Jan 16 2021 23:35:23 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.