|
Guitar
|
#include <Diff.hpp>

Public Member Functions | |
| Diff () | |
| Diff (const sequence &a, const sequence &b) | |
| Diff (const sequence &a, const sequence &b, bool deletesFirst) | |
| Diff (const sequence &a, const sequence &b, const comparator &comp) | |
| Diff (const sequence &a, const sequence &b, bool deleteFirst, const comparator &comp) | |
| ~Diff () | |
| long long | getEditDistance () const |
| Lcs< elem > | getLcs () const |
| elemVec | getLcsVec () const |
| Ses< elem > | getSes () const |
| uniHunkVec | getUniHunks () const |
| bool | isHuge () const |
| void | onHuge () |
| void | offHuge () |
| bool | isUnserious () const |
| void | onUnserious () |
| void | offUnserious () |
| void | onOnlyEditDistance () |
| bool | hugeEnabled () const |
| void | enableHuge () |
| void | disableHuge () |
| bool | trivialEnabled () const |
| void | enableTrivial () |
| void | disableTrivial () |
| void | editDistanceOnlyEnabled () |
| sequence | uniPatch (const sequence &seq) |
| sequence | patch (const sequence &seq) const |
| void | compose () |
| template<typename stream > | |
| void | printSES (stream &out) const |
| void | printSES (ostream &out=cout) const |
| template<typename stream , template< typename SEET, typename STRT > class PT> | |
| void | printSES (stream &out) const |
| template<typename storedData , template< typename SEET, typename STRT > class ST> | |
| void | storeSES (storedData &sd) const |
| template<typename stream > | |
| void | printUnifiedFormat (stream &out) const |
| void | printUnifiedFormat (ostream &out=cout) const |
| void | composeUnifiedHunks () |
Static Public Member Functions | |
| template<typename stream > | |
| static void | printSES (const Ses< elem > &s, stream &out) |
| static void | printSES (const Ses< elem > &s, ostream &out=cout) |
| template<typename stream > | |
| static void | printUnifiedFormat (const uniHunkVec &hunks, stream &out) |
| static void | printUnifiedFormat (const uniHunkVec &hunks, ostream &out=cout) |
| template<typename stream > | |
| static Ses< elem > | composeSesFromStream (stream &st) |
Private Member Functions | |
| dtl_typedefs (elem, sequence) sequence A | |
| void | init () |
| long long | snake (const long long &k, const long long &above, const long long &below) |
| bool | recordSequence (const editPathCordinates &v) |
| void | recordOddSequence (long long idx, long long length, sequence_const_iter it, const edit_t et) |
| void | joinSesVec (sesElemVec &s1, sesElemVec &s2) const |
| bool | wasSwapped () const |
Private Attributes | |
| sequence | B |
| size_t | M |
| size_t | N |
| size_t | delta |
| size_t | offset |
| long long * | fp |
| long long | editDistance |
| Lcs< elem > | lcs |
| Ses< elem > | ses |
| editPath | path |
| editPathCordinates | pathCordinates |
| bool | swapped |
| bool | huge |
| bool | trivial |
| bool | editDistanceOnly |
| uniHunkVec | uniHunks |
| comparator | cmp |
| long long | ox |
| long long | oy |
diff class template sequence must support random_access_iterator.
|
inline |
|
inline |

|
inline |

|
inline |

|
inline |

|
inline |
|
inline |
compose Longest Common Subsequence and Shortest Edit Script. The algorithm implemented here is based on "An O(NP) Sequence Comparison Algorithm" described by Sun Wu, Udi Manber and Gene Myers

|
inlinestatic |
compose ses from stream

|
inline |
compose Unified Format Hunks from Shortest Edit Script

|
inline |
|
inline |
|
private |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
initialize
|
inline |
|
inline |
|
inlineprivate |
join SES vectors
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
patching with Shortest Edit Script (SES)
|
inlinestatic |
|
inlinestatic |
print differences given an SES

|
inline |
|
inline |
print difference between A and B as an SES
|
inline |
print difference between A and B as an SES with custom printer
|
inlinestatic |
|
inlinestatic |
print unified format difference with given unified format hunks
|
inline |
|
inline |
print difference between A and B in the Unified Format
|
inlineprivate |
record odd sequence in SES
|
inlineprivate |
record SES and LCS

|
inlineprivate |
search shortest path and record the path
|
inline |
store difference between A and B as an SES with custom storage
|
inline |
|
inline |
patching with Unified Format Hunks

|
inlineprivate |
check if the sequences have been swapped
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |