Version: 9.12.0
DiffItem< SrcItem, TrgItem > Struct Template Reference

The structure representing difference between source and destination items. More...

#include <SUIT_TreeSync.h>

Public Attributes

SrcItem mySrc
 source tree item More...
 
TrgItem myTrg
 target tree item More...
 

Detailed Description

template<class SrcItem, class TrgItem>
struct DiffItem< SrcItem, TrgItem >

The structure representing difference between source and destination items.

The different combinations of source and target items values imply the different actions to be performed in the target data tree:

  • source item is null, target item is not null : the item should be removed from the target tree
  • source item is not null, target item is null : new item should be added to the target tree
  • both source and target items are not null : the target item can be updated if necessary
  • both source and target items are null : error

Member Data Documentation

◆ mySrc

template<class SrcItem , class TrgItem >
SrcItem DiffItem< SrcItem, TrgItem >::mySrc

source tree item

◆ myTrg

template<class SrcItem , class TrgItem >
TrgItem DiffItem< SrcItem, TrgItem >::myTrg

target tree item


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