edist_state< CHR > Class Template Reference

List of all members.

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)
void edist_calc_f_kp (int k, int p)

Private Member Functions

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

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

Definition at line 133 of file editdistance.cc.

References Assert, edist_state< CHR >::fkp, edist_state< CHR >::fkp_cols, INF, edist_state< CHR >::maxdist, and edist_state< CHR >::set_f_kp().

template<class CHR>
edist_state< CHR >::~edist_state (  )  [inline]

Definition at line 162 of file editdistance.cc.

References edist_state< CHR >::fkp.


Member Function Documentation

template<class CHR>
int edist_state< CHR >::calc_index ( int  k,
int  p 
) const [inline, private]

Definition at line 65 of file editdistance.cc.

References edist_state< CHR >::fkp_cols, and edist_state< CHR >::maxdist.

Referenced by edist_state< CHR >::get_f_kp(), and edist_state< CHR >::set_f_kp().

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

Definition at line 75 of file editdistance.cc.

References edist_state< CHR >::calc_index(), and edist_state< CHR >::fkp.

Referenced by edist_state< CHR >::edist_calc_f_kp(), and seqcmp_editdist().

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

Definition at line 79 of file editdistance.cc.

References edist_state< CHR >::calc_index(), and edist_state< CHR >::fkp.

Referenced by edist_state< CHR >::edist_calc_f_kp(), and edist_state< CHR >::edist_state().

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

Definition at line 83 of file editdistance.cc.

References edist_state< CHR >::seq1, and edist_state< CHR >::seq2.

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

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

Definition at line 93 of file editdistance.cc.

References edist_state< CHR >::get_f_kp(), edist_state< CHR >::is_transposed(), edist_state< CHR >::seq1, edist_state< CHR >::seq2, and edist_state< CHR >::set_f_kp().

Referenced by seqcmp_editdist().


Member Data Documentation

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

Definition at line 50 of file editdistance.cc.

Referenced by edist_state< CHR >::edist_calc_f_kp(), and edist_state< CHR >::is_transposed().

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

Definition at line 51 of file editdistance.cc.

Referenced by edist_state< CHR >::edist_calc_f_kp(), and edist_state< CHR >::is_transposed().

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

Definition at line 58 of file editdistance.cc.

Referenced by edist_state< CHR >::edist_state(), edist_state< CHR >::get_f_kp(), edist_state< CHR >::set_f_kp(), and edist_state< CHR >::~edist_state().

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

Definition at line 59 of file editdistance.cc.

Referenced by edist_state< CHR >::calc_index(), and edist_state< CHR >::edist_state().

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

Definition at line 63 of file editdistance.cc.

Referenced by edist_state< CHR >::calc_index(), and edist_state< CHR >::edist_state().


The documentation for this class was generated from the following file:
Documentation for Xapian (version 1.0.10).
Generated on 24 Dec 2008 by Doxygen 1.5.2.