LibreOffice Module sw (master)  1
Public Member Functions | Private Attributes | List of all members
LineArrayComparator Class Reference

Consider two lines equal if similar enough (e.g. More...

Inheritance diagram for LineArrayComparator:
[legend]
Collaboration diagram for LineArrayComparator:
[legend]

Public Member Functions

 LineArrayComparator (const CompareData &rD1, const CompareData &rD2, int nStt1, int nEnd1, int nStt2, int nEnd2)
 
virtual bool Compare (int nIdx1, int nIdx2) const override
 
virtual int GetLen1 () const override
 
virtual int GetLen2 () const override
 
- Public Member Functions inherited from ArrayComparator
virtual ~ArrayComparator ()
 

Private Attributes

int nLen1
 
int nLen2
 
const CompareDatarData1
 
const CompareDatarData2
 
int nFirst1
 
int nFirst2
 

Detailed Description

Consider two lines equal if similar enough (e.g.

look like different versions of the same paragraph)

Definition at line 259 of file doccomp.cxx.

Constructor & Destructor Documentation

LineArrayComparator::LineArrayComparator ( const CompareData rD1,
const CompareData rD2,
int  nStt1,
int  nEnd1,
int  nStt2,
int  nEnd2 
)

Definition at line 2133 of file doccomp.cxx.

References nLen1, and nLen2.

Member Function Documentation

bool LineArrayComparator::Compare ( int  nIdx1,
int  nIdx2 
) const
overridevirtual
virtual int LineArrayComparator::GetLen1 ( ) const
inlineoverridevirtual

Implements ArrayComparator.

Definition at line 271 of file doccomp.cxx.

References nLen1.

Referenced by CompareData::CheckForChangesInLine().

virtual int LineArrayComparator::GetLen2 ( ) const
inlineoverridevirtual

Implements ArrayComparator.

Definition at line 272 of file doccomp.cxx.

References nLen2.

Referenced by CompareData::CheckForChangesInLine().

Member Data Documentation

int LineArrayComparator::nFirst1
private

Definition at line 264 of file doccomp.cxx.

Referenced by Compare().

int LineArrayComparator::nFirst2
private

Definition at line 264 of file doccomp.cxx.

Referenced by Compare().

int LineArrayComparator::nLen1
private

Definition at line 262 of file doccomp.cxx.

Referenced by Compare(), GetLen1(), and LineArrayComparator().

int LineArrayComparator::nLen2
private

Definition at line 262 of file doccomp.cxx.

Referenced by Compare(), GetLen2(), and LineArrayComparator().

const CompareData& LineArrayComparator::rData1
private

Definition at line 263 of file doccomp.cxx.

Referenced by Compare().

const CompareData & LineArrayComparator::rData2
private

Definition at line 263 of file doccomp.cxx.

Referenced by Compare().


The documentation for this class was generated from the following file: