Diff2::DiffHunk

Search for usage in LXR

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 DifferenceListdifferences () const
 
const QStringfunction () const
 
QString recreateHunk () const
 
void setType (Type type)
 
int sourceLineCount () const
 
int sourceLineNumber () const
 
Type type () const
 

Detailed Description

DiffHunk.

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()

int Diff2::DiffHunk::destinationLineNumber ( ) const
inline

Definition at line 35 of file diffhunk.h.

◆ differences()

const DifferenceList & Diff2::DiffHunk::differences ( ) const
inline

Definition at line 31 of file diffhunk.h.

◆ function()

const QString & Diff2::DiffHunk::function ( ) const
inline

Definition at line 32 of file diffhunk.h.

◆ recreateHunk()

QString DiffHunk::recreateHunk ( ) const

Definition at line 57 of file diffhunk.cpp.

◆ setType()

void Diff2::DiffHunk::setType ( Type type)
inline

Definition at line 41 of file diffhunk.h.

◆ sourceLineCount()

int DiffHunk::sourceLineCount ( ) const

Definition at line 31 of file diffhunk.cpp.

◆ sourceLineNumber()

int Diff2::DiffHunk::sourceLineNumber ( ) const
inline

Definition at line 34 of file diffhunk.h.

◆ type()

Type Diff2::DiffHunk::type ( ) const
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 Fri May 17 2024 11:51:39 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.