OTest2
A C++ testing framework
Public Member Functions | List of all members
OTest2::DiffScoreLCS< Type_ > Class Template Reference

Ordinary scoring function - standard LCS algorithm. More...

#include <hirschberg.h>

Public Member Functions

std::tuple< bool, int > scoreSub (int step_, const Type_ left_[], int left_index_, const Type_ right_[], int right_index_) const
 
int scoreDel (int step_, const Type_ right_[], int right_index_) const
 
int scoreIns (int step_, const Type_ left_[], int left_index_) const
 
bool betterScore (int score1_, int score2_) const
 

Detailed Description

template<typename Type_>
class OTest2::DiffScoreLCS< Type_ >

Ordinary scoring function - standard LCS algorithm.

Definition at line 42 of file hirschberg.h.

Member Function Documentation

◆ betterScore()

template<typename Type_ >
bool OTest2::DiffScoreLCS< Type_ >::betterScore ( int  score1_,
int  score2_ 
) const
inline

Definition at line 68 of file hirschberg.h.

◆ scoreDel()

template<typename Type_ >
int OTest2::DiffScoreLCS< Type_ >::scoreDel ( int  step_,
const Type_  right_[],
int  right_index_ 
) const
inline

Definition at line 54 of file hirschberg.h.

◆ scoreIns()

template<typename Type_ >
int OTest2::DiffScoreLCS< Type_ >::scoreIns ( int  step_,
const Type_  left_[],
int  left_index_ 
) const
inline

Definition at line 61 of file hirschberg.h.

◆ scoreSub()

template<typename Type_ >
std::tuple<bool, int> OTest2::DiffScoreLCS< Type_ >::scoreSub ( int  step_,
const Type_  left_[],
int  left_index_,
const Type_  right_[],
int  right_index_ 
) const
inline

Definition at line 44 of file hirschberg.h.


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