Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 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

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

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