LibreOffice Module sw (master)  1
Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
WordArrayComparator Class Reference
Inheritance diagram for WordArrayComparator:
[legend]
Collaboration diagram for WordArrayComparator:
[legend]

Public Member Functions

 WordArrayComparator (const SwTextNode *pNode1, const SwTextNode *pNode2)
 
virtual bool Compare (int nIdx1, int nIdx2) const override
 
virtual int GetLen1 () const override
 
virtual int GetLen2 () const override
 
int GetCharSequence (const int *pWordLcs1, const int *pWordLcs2, int *pSubseq1, int *pSubseq2, int nLcsLen)
 
- Public Member Functions inherited from ArrayComparator
virtual ~ArrayComparator ()
 

Static Private Member Functions

static void CalcPositions (int *pPos, const SwTextNode *pTextNd, int &nCnt)
 

Private Attributes

const SwTextNodepTextNd1
 
const SwTextNodepTextNd2
 
std::unique_ptr< int[]> pPos1
 
std::unique_ptr< int[]> pPos2
 
int nCnt1
 
int nCnt2
 

Detailed Description

Definition at line 275 of file doccomp.cxx.

Constructor & Destructor Documentation

WordArrayComparator::WordArrayComparator ( const SwTextNode pNode1,
const SwTextNode pNode2 
)

Definition at line 2238 of file doccomp.cxx.

References CalcPositions(), SwTextNode::GetText(), nCnt1, nCnt2, pPos1, pPos2, pTextNd1, and pTextNd2.

Member Function Documentation

void WordArrayComparator::CalcPositions ( int pPos,
const SwTextNode pTextNd,
int nCnt 
)
staticprivate

Definition at line 2299 of file doccomp.cxx.

References SwTextNode::GetText().

Referenced by WordArrayComparator().

bool WordArrayComparator::Compare ( int  nIdx1,
int  nIdx2 
) const
overridevirtual
int WordArrayComparator::GetCharSequence ( const int pWordLcs1,
const int pWordLcs2,
int pSubseq1,
int pSubseq2,
int  nLcsLen 
)

Definition at line 2269 of file doccomp.cxx.

References SwTextNode::GetText(), pPos1, pPos2, pTextNd1, and pTextNd2.

Referenced by SwCompareLine::ChangesInLine().

virtual int WordArrayComparator::GetLen1 ( ) const
inlineoverridevirtual

Implements ArrayComparator.

Definition at line 288 of file doccomp.cxx.

References nCnt1.

Referenced by SwCompareLine::ChangesInLine().

virtual int WordArrayComparator::GetLen2 ( ) const
inlineoverridevirtual

Implements ArrayComparator.

Definition at line 289 of file doccomp.cxx.

References nCnt2.

Referenced by SwCompareLine::ChangesInLine().

Member Data Documentation

int WordArrayComparator::nCnt1
private

Definition at line 280 of file doccomp.cxx.

Referenced by GetLen1(), and WordArrayComparator().

int WordArrayComparator::nCnt2
private

Definition at line 280 of file doccomp.cxx.

Referenced by GetLen2(), and WordArrayComparator().

std::unique_ptr<int[]> WordArrayComparator::pPos1
private

Definition at line 279 of file doccomp.cxx.

Referenced by Compare(), GetCharSequence(), and WordArrayComparator().

std::unique_ptr<int[]> WordArrayComparator::pPos2
private

Definition at line 279 of file doccomp.cxx.

Referenced by Compare(), GetCharSequence(), and WordArrayComparator().

const SwTextNode* WordArrayComparator::pTextNd1
private

Definition at line 278 of file doccomp.cxx.

Referenced by Compare(), GetCharSequence(), and WordArrayComparator().

const SwTextNode * WordArrayComparator::pTextNd2
private

Definition at line 278 of file doccomp.cxx.

Referenced by Compare(), GetCharSequence(), and WordArrayComparator().


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