The structure representing difference between source and destination items.
More...
#include <SUIT_TreeSync.h>
Data Fields |
| SrcItem | mySrc |
| | source tree item
|
| TrgItem | myTrg |
| | target tree item
|
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
Field Documentation
template<class SrcItem, class TrgItem>
template<class SrcItem, class TrgItem>