xapian-core  1.4.26
Public Member Functions | Private Member Functions | Private Attributes | List of all members
edist_state< CHR > Class Template Reference

Public Member Functions

 edist_state (const CHR *ptr1, int len1, const CHR *ptr2, int len2)
 
 ~edist_state ()
 
int get_f_kp (int k, int p) const
 
void set_f_kp (int k, int p, int val)
 
bool is_transposed (int pos1, int pos2) const
 
void edist_calc_f_kp (int k, int p)
 

Private Member Functions

void operator= (const edist_state &)
 Don't allow assignment. More...
 
 edist_state (const edist_state &)
 Don't allow copying. More...
 
int calc_index (int k, int p) const
 

Private Attributes

edist_seq< CHR > seq1
 
edist_seq< CHR > seq2
 
int * fkp
 
int fkp_cols
 
int maxdist
 

Detailed Description

template<class CHR>
class edist_state< CHR >

Definition at line 49 of file editdistance.cc.

Constructor & Destructor Documentation

◆ edist_state() [1/2]

template<class CHR>
edist_state< CHR >::edist_state ( const edist_state< CHR > &  )
private

Don't allow copying.

◆ edist_state() [2/2]

template<class CHR >
edist_state< CHR >::edist_state ( const CHR *  ptr1,
int  len1,
const CHR *  ptr2,
int  len2 
)

◆ ~edist_state()

template<class CHR >
edist_state< CHR >::~edist_state ( )

Definition at line 163 of file editdistance.cc.

References edist_state< CHR >::fkp.

Member Function Documentation

◆ calc_index()

template<class CHR>
int edist_state< CHR >::calc_index ( int  k,
int  p 
) const
inlineprivate

Definition at line 71 of file editdistance.cc.

◆ edist_calc_f_kp()

template<class CHR >
void edist_state< CHR >::edist_calc_f_kp ( int  k,
int  p 
)

Definition at line 99 of file editdistance.cc.

Referenced by seqcmp_editdist().

◆ get_f_kp()

template<class CHR>
int edist_state< CHR >::get_f_kp ( int  k,
int  p 
) const
inline

Definition at line 81 of file editdistance.cc.

Referenced by seqcmp_editdist().

◆ is_transposed()

template<class CHR>
bool edist_state< CHR >::is_transposed ( int  pos1,
int  pos2 
) const
inline

Definition at line 89 of file editdistance.cc.

References edist_seq< CHR >::len, and edist_seq< CHR >::ptr.

◆ operator=()

template<class CHR>
void edist_state< CHR >::operator= ( const edist_state< CHR > &  )
private

Don't allow assignment.

◆ set_f_kp()

template<class CHR>
void edist_state< CHR >::set_f_kp ( int  k,
int  p,
int  val 
)
inline

Definition at line 85 of file editdistance.cc.

Referenced by edist_state< CHR >::edist_state().

Member Data Documentation

◆ fkp

template<class CHR>
int* edist_state< CHR >::fkp
private

◆ fkp_cols

template<class CHR>
int edist_state< CHR >::fkp_cols
private

Definition at line 65 of file editdistance.cc.

Referenced by edist_state< CHR >::edist_state().

◆ maxdist

template<class CHR>
int edist_state< CHR >::maxdist
private

Definition at line 69 of file editdistance.cc.

Referenced by edist_state< CHR >::edist_state().

◆ seq1

template<class CHR>
edist_seq<CHR> edist_state< CHR >::seq1
private

Definition at line 56 of file editdistance.cc.

◆ seq2

template<class CHR>
edist_seq<CHR> edist_state< CHR >::seq2
private

Definition at line 57 of file editdistance.cc.


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