VLC 4.0.0-dev
vlc_diffutil_change_t Struct Reference

represent a change to the model, each change assumes that previous changes have already been applied More...

#include <vlc_diffutil.h>

Data Fields

union {
   struct {
      uint32_t   x
 data position in the old model More...
 
      uint32_t   y
 data position in the new model More...
 
      uint32_t   index
 insertion position in the updated model More...
 
   }   insert
 
   struct {
      uint32_t   x
 data position in the old model More...
 
      uint32_t   y
 data position in the new model More...
 
      uint32_t   index
 removal position in the updated model More...
 
   }   remove
 
   struct {
      uint32_t   from
 move origin More...
 
      uint32_t   to
 move destination More...
 
      uint32_t   x
 data position in the old model More...
 
      uint32_t   y
 data position in the new model More...
 
   }   move
 
op
 
enum vlc_diffutil_op_type type
 type of change operation More...
 
uint32_t count
 number of elements to be inserted/removed/moved More...
 

Detailed Description

represent a change to the model, each change assumes that previous changes have already been applied

for instance with a model "aBcDef", the operations [remove(index=1, count=1), remove(index=2, count=1)] will result in "acef" (with "acDef" as intermediary step)

Examples
/builds/Eson-Jia1/vlc/include/vlc_diffutil.h.

Field Documentation

◆ count

uint32_t vlc_diffutil_change_t::count

number of elements to be inserted/removed/moved

Referenced by buildResultInsert(), buildResultRemove(), and vlc_diffutil_gather_move_changes().

◆ from

uint32_t vlc_diffutil_change_t::from

move origin

Referenced by vlc_diffutil_gather_move_changes().

◆ index

uint32_t vlc_diffutil_change_t::index

insertion position in the updated model

removal position in the updated model

Referenced by vlc_diffutil_gather_move_changes().

◆ 

struct { ... } vlc_diffutil_change_t::insert

◆ 

struct { ... } vlc_diffutil_change_t::move

◆ 

union { ... } vlc_diffutil_change_t::op

◆ 

struct { ... } vlc_diffutil_change_t::remove

◆ to

uint32_t vlc_diffutil_change_t::to

move destination

Referenced by vlc_diffutil_gather_move_changes().

◆ type

enum vlc_diffutil_op_type vlc_diffutil_change_t::type

type of change operation

Referenced by buildResultInsert(), buildResultRemove(), and vlc_diffutil_gather_move_changes().

◆ x

uint32_t vlc_diffutil_change_t::x

data position in the old model

Referenced by buildResultRemove(), and vlc_diffutil_gather_move_changes().

◆ y

uint32_t vlc_diffutil_change_t::y

data position in the new model

Referenced by buildResultInsert(), and vlc_diffutil_gather_move_changes().


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