Jameo Core Library
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
jm::DiffBacktrace Class Reference

DiffBacktrace is used to indicate the "path of change". More...

Public Member Functions

 DiffBacktrace ()
 Default constructor.
 
 DiffBacktrace (const DiffBacktrace &another)
 Copy constructor.
 
 ~DiffBacktrace ()
 Destructor.
 
void print ()
 Writes the result of Diff to the standard output stream if something is different.
 
DiffOperation operation () const
 Returns the diff operation.
 

Static Public Member Functions

static DiffBacktracebacktrace (DiffDiag *dd, size_t i)
 This method performs the backtracing to obtain the path of changes.
 

Detailed Description

DiffBacktrace is used to indicate the "path of change".

Constructor & Destructor Documentation

◆ DiffBacktrace() [1/2]

jm::DiffBacktrace::DiffBacktrace ( )

Default constructor.

◆ DiffBacktrace() [2/2]

jm::DiffBacktrace::DiffBacktrace ( const DiffBacktrace another)

Copy constructor.

◆ ~DiffBacktrace()

jm::DiffBacktrace::~DiffBacktrace ( )

Destructor.

Member Function Documentation

◆ backtrace()

static DiffBacktrace * jm::DiffBacktrace::backtrace ( DiffDiag dd,
size_t  i 
)
static

This method performs the backtracing to obtain the path of changes.

Parameters
ddPointer to the diagonal from which the considered element originates.
i0-based index of the element in the diagonal.

◆ operation()

DiffOperation jm::DiffBacktrace::operation ( ) const

Returns the diff operation.

◆ print()

void jm::DiffBacktrace::print ( )

Writes the result of Diff to the standard output stream if something is different.