Diff2::DiffHunk
Diff2::DiffHunk Class Reference
#include <diffhunk.h>
Public Types | |
enum | Type { Normal , AddedByBlend } |
Public Member Functions | |
DiffHunk (int sourceLine, int destinationLine, const QString &function=QString(), Type type=Normal) | |
void | add (Difference *diff) |
int | destinationLineCount () const |
int | destinationLineNumber () const |
const DifferenceList & | differences () const |
const QString & | function () const |
QString | recreateHunk () const |
void | setType (Type type) |
int | sourceLineCount () const |
int | sourceLineNumber () const |
Type | type () const |
Detailed Description
Definition at line 22 of file diffhunk.h.
Member Enumeration Documentation
◆ Type
enum Diff2::DiffHunk::Type |
Definition at line 25 of file diffhunk.h.
Constructor & Destructor Documentation
◆ DiffHunk()
DiffHunk::DiffHunk | ( | int | sourceLine, |
int | destinationLine, | ||
const QString & | function = QString(), | ||
Type | type = Normal ) |
Definition at line 14 of file diffhunk.cpp.
◆ ~DiffHunk()
DiffHunk::~DiffHunk | ( | ) |
Definition at line 22 of file diffhunk.cpp.
Member Function Documentation
◆ add()
void DiffHunk::add | ( | Difference * | diff | ) |
Definition at line 26 of file diffhunk.cpp.
◆ destinationLineCount()
int DiffHunk::destinationLineCount | ( | ) | const |
Definition at line 44 of file diffhunk.cpp.
◆ destinationLineNumber()
|
inline |
Definition at line 35 of file diffhunk.h.
◆ differences()
|
inline |
Definition at line 31 of file diffhunk.h.
◆ function()
|
inline |
Definition at line 32 of file diffhunk.h.
◆ recreateHunk()
QString DiffHunk::recreateHunk | ( | ) | const |
Definition at line 57 of file diffhunk.cpp.
◆ setType()
|
inline |
Definition at line 41 of file diffhunk.h.
◆ sourceLineCount()
int DiffHunk::sourceLineCount | ( | ) | const |
Definition at line 31 of file diffhunk.cpp.
◆ sourceLineNumber()
|
inline |
Definition at line 34 of file diffhunk.h.
◆ type()
|
inline |
Definition at line 40 of file diffhunk.h.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:16:37 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:16:37 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.