OTest2
A C++ testing framework
Public Attributes | List of all members
OTest2::DiffRecord Struct Reference

A diff change record. More...

#include <difflogarray.h>

Public Attributes

DiffAction action
 
int left_index
 
int right_index
 

Detailed Description

A diff change record.

The structure contains a difference computed by the LCS algorithm. The action defines what has happened. The indexes point the touched item(s) in the source sequences. If the action is the CHANGE, both indexes are filled. If the action is the INSERT only left index is filled. If the action is the DELETE only right index is filled.

Definition at line 38 of file difflogarray.h.

Member Data Documentation

◆ action

DiffAction OTest2::DiffRecord::action

the change: CHANGE, INSERT, DELETE

Definition at line 39 of file difflogarray.h.

◆ left_index

int OTest2::DiffRecord::left_index

index in the left sequence (valid: CHANGE, INSERT)

Definition at line 40 of file difflogarray.h.

◆ right_index

int OTest2::DiffRecord::right_index

index in the rigth sequence (valid: CHANGE, DELETE)

Definition at line 41 of file difflogarray.h.


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